摘要: //index.js //获取应用实例 const app = getApp(); import * as echarts from '../../ec-canvas/echarts'; //引入echarts.js const moment = require('../../utils/momen 阅读全文
posted @ 2018-09-11 10:21 葫芦娃啊 阅读(334) 评论(0) 推荐(0) 编辑
摘要: createjs、egret、layabox和cocos引擎工具等。 https://www.jianshu.com/p/3e05314da075 vconcole https://github.com/panteng/wechat-h5-boilerplate https://github.com 阅读全文
posted @ 2018-08-09 10:52 葫芦娃啊 阅读(95) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/guoxianglei/p/7084506.html 阅读全文
posted @ 2018-07-25 15:11 葫芦娃啊 阅读(13630) 评论(0) 推荐(0) 编辑
摘要: query -> 是通过 url 来传递参数的同样是key:value形式传递 query -> 是通过 url 来传递参数的同样是key:value形式传递 在测试过程中发现params不能生效,只有query可以,所以这里我用了query 在跳转后的页面用 this.$route.query.i 阅读全文
posted @ 2018-07-19 09:33 葫芦娃啊 阅读(824) 评论(0) 推荐(0) 编辑
摘要: cuts:function(idx){ console.log(idx) // if( this.$refs.idx[idx].textContent<1 ) return this.$refs.idx[idx].textContent-- },add:function(e,idx){ consol 阅读全文
posted @ 2018-07-19 09:21 葫芦娃啊 阅读(1044) 评论(0) 推荐(0) 编辑
摘要: 最近在用vue写项目,发现独立组件style, 在运行项目时,前一个页面的style会出现在新页面上, 然后看了解决办法,需要在每个style后面添加一个scoped, 这样就可以了,不需要担心css残留问题了 阅读全文
posted @ 2018-07-11 11:55 葫芦娃啊 阅读(3597) 评论(0) 推荐(0) 编辑
摘要: 返回json数据,IE浏览器提示下载的问题,其他浏览器没有问题,IE浏览器会提示json下载,保存文件, 解决办法 原返回值:context.Response.ContentType = "application/json"; 修改成:context.Response.ContentType = " 阅读全文
posted @ 2018-07-03 17:33 葫芦娃啊 阅读(686) 评论(0) 推荐(0) 编辑
摘要: , 这是模板请求的接口,我看了一下,找到了他是如何mock数据的, config文件中, module.exports = merge(prodEnv, { NODE_ENV: '"development"', BASE_API: '"https://easy-mock.com/mock/5950a 阅读全文
posted @ 2018-06-15 16:27 葫芦娃啊 阅读(4133) 评论(1) 推荐(0) 编辑
摘要: <div class="col-sm-6 col-xs-6 padding-0 abc">目前:<input id="id_card" name="card" type="file"></div> 如何修改这样的,删除div的文字,但是其他的标签保留; 解决办法: 这样就完美解决了。 阅读全文
posted @ 2018-06-14 16:18 葫芦娃啊 阅读(655) 评论(0) 推荐(0) 编辑
摘要: 布局: css: .masonry { display: flex; flex-direction: column;}@media only screen and (min-width: 500px) { .masonry { flex-direction: row; }} .column { di 阅读全文
posted @ 2018-06-06 17:52 葫芦娃啊 阅读(115) 评论(0) 推荐(0) 编辑