摘要: 步骤一: 在要调试的index.html文件中添加如下 <script src="https://cdn.bootcss.com/vConsole/3.3.4/vconsole.min.js"></script> 第二步: <script> new VConsole() </script> 阅读全文
posted @ 2019-07-16 13:37 龙卷风吹毁停车场 阅读(478) 评论(0) 推荐(1)
摘要: 使用: 阅读全文
posted @ 2019-07-15 17:13 龙卷风吹毁停车场 阅读(3492) 评论(0) 推荐(0)
摘要: 组件生命周期函数链接地址:https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/lifetimes.html 微信小程序中使用方法传递参数 错误写法: <view bindtap='btn_button 阅读全文
posted @ 2019-07-03 15:42 龙卷风吹毁停车场 阅读(1871) 评论(0) 推荐(0)
摘要: 第一步:下载HBuilderX,新建项目选择5+App新建一个空项目如下图 新建后项目目录结构如下图 第二步,将你要打包成安卓app的文件打包,最后生成的文件目录如下图 1、打包完成后,将对应文件内容放入到新建的5+App项目对应目录下 注意:将H5页面打包成安卓原生app之后会存在点击返回无法返回 阅读全文
posted @ 2019-07-01 11:08 龙卷风吹毁停车场 阅读(10208) 评论(0) 推荐(1)
摘要: 1 let time = setInterval(() => { 2 let scroll = document.documentElement.scrollTop || document.body.scrollTop;//解决scrollTop始终为零,尽此行代码 3 if (scroll = 200) { 7 ... 阅读全文
posted @ 2019-07-01 10:48 龙卷风吹毁停车场 阅读(831) 评论(0) 推荐(0)
摘要: export default { data(){ return{ date:[] } }, methods:{ async getInitialUsers(){ let res = await get_message.get('http://localhost:3000/json') this.da 阅读全文
posted @ 2019-06-27 14:50 龙卷风吹毁停车场 阅读(417) 评论(0) 推荐(1)
摘要: null表示一个空对象指针,一般用于主动释放对象引用undefined表示声明的变量还未初始化 阅读全文
posted @ 2019-06-27 14:37 龙卷风吹毁停车场 阅读(184) 评论(0) 推荐(0)
摘要: { "navigationBarTitleText": "111", "usingComponents":{ "w-dad":"/components/home/home" } } 组件命名不支持大写字母 阅读全文
posted @ 2019-06-27 14:27 龙卷风吹毁停车场 阅读(611) 评论(0) 推荐(0)
摘要: 如果是直接动态获取完整的图片地址可以使用以下方法 如果想动态的改变地址中的某个索引,必须使用require来加载图片,如下 阅读全文
posted @ 2019-06-27 14:25 龙卷风吹毁停车场 阅读(874) 评论(0) 推荐(0)
摘要: vue-cil搭建的项目 第一步:找到目录下router.js文件 第二步: 在new Router({ routes:[..............] })中添加mode属性,默认mode是hash export default new Router({ mode: 'history', rout 阅读全文
posted @ 2019-06-27 14:09 龙卷风吹毁停车场 阅读(341) 评论(0) 推荐(0)