上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 24 下一页
摘要: 1.安装 npm install echarts --save <template> <div class="home"> <div id='main' style="width: 600px;height:400px;"></div> </div> </template> <script> imp 阅读全文
posted @ 2020-12-29 16:36 炽橙子 阅读(492) 评论(0) 推荐(0) 编辑
摘要: 在项目根目录创建vue.config.js文件。 module.exports = { lintOnSave: false, devServer: { overlay: { warning: false, errors: false } } } eslint常见报错: 文件末尾存在空行(eol-la 阅读全文
posted @ 2020-12-29 15:27 炽橙子 阅读(4615) 评论(0) 推荐(1) 编辑
摘要: this.data = this.list.reduce((total,per)=>{ total.push({ name:per.keyWrdDsc, value:per.num1 }} return total;},[]);this.config = ['bar','line','per'];t 阅读全文
posted @ 2020-12-28 17:31 炽橙子 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 开始 >运行 >cmd,或者是window+R组合键,调出命令窗口 2 输入命令:netstat -ano,列出所有端口的情况。在列表中我们观察被占用的端口,比如是49157,首先找到它。 3 查看被占用端口对应的PID,输入命令:netstat -aon|findstr "49157",回车,记下 阅读全文
posted @ 2020-12-24 09:36 炽橙子 阅读(136) 评论(0) 推荐(0) 编辑
摘要: vue中使用:src="img"绑定本地静态资源失效问题 直接使用src本地引入图片正常显示 <img src="../assets/img/bs.png" alt="" /> 而使用v-bind时却意外的失效 <img :src="img" alt="" /> //js data() { retu 阅读全文
posted @ 2020-12-02 20:18 炽橙子 阅读(1713) 评论(0) 推荐(0) 编辑
摘要: 三.解决每次修改文件上传必须输入账号密码的问题:如果能记住账号密码更好不过了,省事多了,不用每次都输入账号密码!!!而且还得输入两遍。记住密码有两种方式: (一).较为简单在桌面打开 git bash输入命令:git config --global credential.helper store重启 阅读全文
posted @ 2020-11-25 13:52 炽橙子 阅读(1834) 评论(0) 推荐(0) 编辑
摘要: 如果vscode安装了vetur插件之后,shift+Alt+F又无法格式化vue文件代码。 解决办法:打开文件 > 首选项 > 设置,搜索 vetur.format.defaultFormatter.html后将none替换勾选为js-beautify-html 转:https://www.jia 阅读全文
posted @ 2020-11-05 11:13 炽橙子 阅读(4103) 评论(0) 推荐(0) 编辑
摘要: //获取详情数据 getData(e){ wx.request({ url: app.globalData.baseurl + '/xxxx', data: {id:e}, success: (res) => { console.log(res); app.checkResCode(res.data 阅读全文
posted @ 2020-11-02 14:48 炽橙子 阅读(430) 评论(0) 推荐(0) 编辑
摘要: 第一种方法triggerEvent() 方法 triggerEvent方法用法类似于Vue中的emit() // list.wxml 组件 <view> <block wx:for="{{data}}" wx:key="*this"> <view class="box-list"> <view cl 阅读全文
posted @ 2020-10-16 17:24 炽橙子 阅读(7712) 评论(0) 推荐(0) 编辑
摘要: 说明:取值方面(一般用于页面传值) 1、如果绑定的事件所在组件没有子元素,则用e.target e.currentTarget一样; 2、如果事件绑定在父元素中,且该父元素有子元素,当用e.currentTarget时,不管点击父元素所在区域还是子元素(当前事件),都正确执行,若用e.target时 阅读全文
posted @ 2020-10-10 09:35 炽橙子 阅读(250) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 24 下一页