排行榜

  • 用户榜
  • 标签榜
  • 冲榜分奖金

频道

最新最热悬赏待采纳 筛选
  • 4

    回答

  • 31

    浏览

为啥我随便一个请求在本地就能有原网址内容,崩溃了,所有项目都是这样。。。

吖茶
采纳率0%
25天前
  • 6

    回答

  • 39

    浏览

Chrome版本: 89.0.4389.114(正式版本) Ubuntu版本: Linux version 5.4.0-71-generic (buildd@lgw01-amd64-022) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) #79~18.04.1-Ubuntu SMP Thu Mar 25 05:45:39 UTC 2021 图片链接:http://gank.io/images/0eddd89158f64846a1c8ef8e9cbe04ca   修改字体无效 清除浏览数据无效 “ctrl+f5”无效 重启无效  

  • 7

    回答

  • 471

    浏览

CSDN Chrome 插件更新了:https://plugin.csdn.net/  它还有什么问题,你觉得它还能做什么别的功能? 请在这里分享你的反馈, 最好的bug 报告 或者 功能建议会得到金钱奖励。 bug 报告要求: 1. 描述bug 发生的环境和步骤 2. 有截图更好 3. 你觉得是什么原因导致 CSDN 的开发测试人员没有发现这个bug,而让你发现了? 4. 如果你来做开发和测试,你怎么避免这样的bug? 功能建议要求: 你觉得会有多少用使用你提议的功能?   

  • 1

    回答

  • 6

    浏览

-------- Running "d:\cef3\source\depot_tools\git.bat rev-parse HEAD" in "d:\cef3\source\chromium\src"... -------- Running "d:\cef3\source\depot_tools\git.bat rev-parse refs/tags/89.0.4389.114" in "d:\cef3\source\chromium\src"... --> Chromium Current Checkout: a2a906984cc3e176d47dff184a78f51e83603557 --> Chromium Desired Checkout: 5342041f85833c038dcbc5632d62fc10f7592323 (refs/tags/89.0.4389.114) -------- Running "gclient revert --nohooks" in "d:\cef3\source\chromium"... Syncing projects: 79% (103/129) src/tools/skia_goldctl/win:skia/tools/goldctl/windows-amdSyncing projects: 80% (104/129) src/third_party/webgpu-cts/src Syncing projects: 100% (129/129) src/third_party/webrtc src/third_party/ots/src (ERROR) ---------------------------------------- [0:00:29] Started. ---------------------------------------- Traceback (most recent call last): File "d:\cef3\source\depot_tools\gclient_scm.py", line 878, in revert deps_revision = self.GetUsableRev(deps_revision, options) File "d:\cef3\source\depot_tools\gclient_scm.py", line 938, in GetUsableRev raise NoUsableRevError( gclient_scm.NoUsableRevError: 83> Hash ee537ac096667eed6559124164c3e8482646fd77 does not appear to be a valid hash in this repo. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "d:\cef3\source\depot_tools\metrics.py", line 267, in print_notice_and_exit yield File "d:\cef3\source\depot_tools\gclient.py", line 3199, in <module> sys.exit(main(sys.argv[1:])) File "d:\cef3\source\depot_tools\gclient.py", line 3185, in main return dispatcher.execute(OptionParser(), argv) File "d:\cef3\source\depot_tools\subcommand.py", line 252, in execute return command(parser, args[1:]) File "d:\cef3\source\depot_tools\gclient.py", line 2821, in CMDrevert return client.RunOnDeps('revert', args) File "d:\cef3\source\depot_tools\gclient.py", line 1779, in RunOnDeps work_queue.flush(revision_overrides, command, args, options=self._options, File "d:\cef3\source\depot_tools\gclient_utils.py", line 968, in flush reraise(e[0], e[1], e[2]) File "d:\cef3\source\depot_tools\gclient_utils.py", line 67, in reraise raise value File "d:\cef3\source\depot_tools\gclient_utils.py", line 1045, in run self.item.run(*self.args, **self.kwargs) File "d:\cef3\source\depot_tools\gclient.py", line 925, in run self._got_revision = self._used_scm.RunCommand(command, options, args, File "d:\cef3\source\depot_tools\gclient_scm.py", line 132, in RunCommand return getattr(self, command)(options, args, file_list) File "d:\cef3\source\depot_tools\gclient_scm.py", line 884, in revert e.message) AttributeError: 'NoUsableRevError' object has no attribute 'message' Traceback (most recent call last): File "automate-git.py", line 1367, in <module> run("gclient revert --nohooks", chromium_dir, depot_tools_dir) File "automate-git.py", line 69, in run return subprocess.check_call( File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 364, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['gclient', 'revert', '--nohooks']' returned non-zero exit status 1.  

回答 单独中洞见
采纳率0%
16天前
  • 1

    回答

  • 12

    浏览

打开以后是这个页面,纯小白,网上到处搜都没找到解决办法

回答 WildBlue979
采纳率66.7%
15天前
  • 3

    回答

  • 44

    浏览

各位大神们求帮助。现在遇到一个需求是: echarts渲染出的地图,当点击某一块地图区域时,放大该区域。 现在已经实现了放大效果,通过修改地图的center和zoom属性实现的,但是没有过渡动画,求帮助。 $.get(countriesJson, function (geoJson) { CountriesChart.hideLoading(); echarts.registerMap('World', geoJson); CountriesChart.setOption(option = { tooltip: { trigger: 'item', formatter: '{b}<br/>指数:{c}' }, visualMap: { type: "piecewise", splitNumber: 5, left: '30', bottom: '30', min: 0, max: 5, calculable: true, realtime: false, inRange: { color: ["#5e2120", "#843433", "#ea835b", "#f3c097", "#ecd7a8"].reverse() } }, series: [{ name: '国家态势', type: 'map', mapType: 'World', zoom: 1, roam: true, scaleLimit: { //滚轮缩放的极限控制 min: 1, max: 20 }, itemStyle: { areaColor: '#eee', emphasis: {// 也是选中样式 // borderWidth: 1, areaColor: '#d7b25f', label: { show: 'scale', textStyle: { color: '#0063d2' } } } }, data: newChartsData, zlevel: 1, animation: true }] }); }); //点击时的方法 CountriesChart.on('click', function (params) { option.series[0].center = [currentData[i].longitude, currentData[i].latitude]; option.series[0].layoutCenter = ['50%', '50%']; option.series[0].zoom = 7; CountriesChart.setOption(option); });  

  • 2

    回答

  • 114

    浏览

希望用React实现一个echarts可拖拽折线图; 框架语言是React+JS,使用了echarts-for-react; 根据echarts官网上面的示例,在option{}中加入graphic组件,代码如下: import ReactEcharts from 'echarts-for-react'; import React from 'react'; class MyEcharts extends React.Component { state = { option: {}, }; setOption = () => { const data = [ [15, 0], [-50, 10], [-56.5, 20], [-46.5, 30], [-22.1, 40], ]; const symbolSize = 20; const option = { xAxis: { min: -100, max: 80, type: 'value', axisLine: { onZero: false }, }, yAxis: { min: -30, max: 60, type: 'value', axisLine: { onZero: false }, }, series: [ { id: 'a', type: 'line', smooth: true, symbolSize, data, }, ], graphic: data.map(function (item, dataIndex) { return { type: 'circle', position: myChart.convertToPixel('grid', item), shape: { cx: 0, cy: 0, r: symbolSize / 2, }, invisible: true, draggable: true, ondrag(dx, dy) { onPointDragging(dataIndex, [this.x, this.y]); }, z: 100, }; }), }; function onPointDragging(dataIndex, pos) { data[dataIndex] = myChart.convertFromPixel('grid', pos); } myChart.on('dataZoom', updatePosition); function updatePosition() { myChart.setOption({ graphic: data.map(function (item, dataIndex) { return { position: myChart.convertToPixel('grid', item), }; }), }); } // // Update data myChart.setOption({ series: [ { id: 'a', data, }, ], }); this.setState({ option, }); }; render() { return ( <ReactEcharts style={{ marginTop: '20px', height: '400px', border: '1px solid rgb(204 20 204 / 0.5)', paddingTop: '10px', borderRadius: '6px', }} option={this.setOption()} /> ); } } export default MyEcharts; 浏览器报错 :ReferenceError: myChart is not defined 请问该如何修改我的代码? 如果大佬可以上传具体代码的话,感激不尽!      

  • 6

    回答

  • 56

    浏览

卸载重装或者重启都不管用,也试过注册表添加那些的东西,就是会出现一些网站打不开,求大佬救命

  • 2

    回答

  • 57

    浏览

  目标是实现数据点可拖拽的echarts折线图; 框架是React,目前的代码如下: import * as echarts from 'echarts'; import ReactEcharts from 'echarts-for-react'; import React, { Component } from 'react'; class Index extends Component { constructor(props) { super(props); this.state = { data: [], }; } componentDidMount() { const { data } = this.state; // 基于准备好的dom,初始化echarts实例 const myChart = echarts.init(document.getElementById('forms')); // 绘制图表 myChart.setOption({ title: { text: '96点可拖拽折线图', }, tooltip: {}, legend: { data: ['负荷'], }, xAxis: { type: 'value', }, yAxis: { type: 'value', }, // 横纵拖拽 dataZoom: [ { type: 'slider', xAxisIndex: 0, filterMode: 'none', }, { type: 'slider', yAxisIndex: 0, filterMode: 'none', }, { type: 'inside', xAxisIndex: 0, filterMode: 'none', }, { type: 'inside', yAxisIndex: 0, filterMode: 'none', }, ], series: [ { id: 'a', smooth: true, name: '负荷', type: 'line', data: [150, 230, 224, 218, 135, 147, 260], }, ], graphic: data.map(data, (item, dataIndex) => { return { type: 'circle', // 将圆点平移到的位置 position: myChart.convertToPixel('grid', item), shape: { cx: 0, cy: 0, // r: symbolSize / 2, }, // 圆点不可见 invisible: true, // 圆点可拖拽 draggable: true, // 拖拽的响应事件,被拖拽时不断触发 ondrag(dx, dy) { this.onPointDragging(dataIndex, [this.x, this.y]); }, // 圆点在最上方,覆盖其他 z: 100, }; }), }); // eslint-disable-next-line no-undef onPointDragging = (dataIndex) => { // 根据圆点的位置,将像素坐标转换成直角坐标,更新data data[dataIndex] = myChart.convertFromPixel('grid', this.position); // 用更新后的data,重绘折线图 myChart.setOption({ series: [ { id: 'a', data, }, ], }); }; } render() { return <div id="forms" style={{ width: '650px', height: '350px' }} />; } } export default Index; 浏览器报错如下: TypeError: [object Array] is not a function Index.componentDidMount ./src/pages/echarts/echarts.js:74 71 | data: [150, 230, 224, 218, 135, 147, 260], 72 | }, 73 | ], > 74 | graphic: data.map(data, (item, dataIndex) => { | ^ 75 | return { 76 | type: 'circle', 77 | // 将圆点平移到的位置   请问我该如何修改代码?如果能提供具体修改后代码,感激不尽!

  • 8

    回答

  • 77

    浏览

<!doctype html> <html lang="zh-CN">   <head>     <!-- 必须的 meta 标签 -->     <meta charset="utf-8">     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">       <!-- Bootstrap 的 CSS 文件 -->     <link rel="stylesheet" href="css/bootstrap.min.css">       <title>Hello, world!</title>   </head>   <body>          <div id="app" style="border:1px solid red;width: 400px;height: 300px;margin-left: 100px;">           <input type="text" v-model="info"/>         {{info}}           <button @click="fun" class="btn btn-success">按钮</button>       </div>       <script src="js/jquery-3.6.0.slim.min.js" ></script>     <script src="js/bootstrap.bundle.min.js"></script>     <script src="js/vue.global.js"></script>     <script src="js/axios.min.js"></script>       <script>         //定义vue应用配置         const app = {             //data函数专门用来定义数据             data(){                 return{                     info:'abc',//定义了一个名称为info的数据                 };             },               //定义函数             mothods:{                 fun(){                     this.info="这是测试"                 }             }           };           Vue.createApp(app).mount('#app')       </script>        </body> </html> 

  • 0

    回答

  • 5

    浏览

去官网找了半天没找到私有实例的下载页面,请求一份最新的发布包

  • 6

    回答

  • 25

    浏览

各位大佬,帮忙解决下这个问题。 网页中显示这个样子, 报错:  代码: