上一页 1 2 3 4 5 6 7 8 9 ··· 16 下一页
摘要: 1.轮播图 2.下拉选择 阅读全文
posted @ 2019-06-13 10:33 fm060 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 1.路由5种跳转方式 (1)wx.switchTab :只能跳转到导航页,并关闭其他的导航页 (1)wx.reLaunch :关闭所有页面,打开到应用内的某个页面 (1)wx.redirectTo :关闭当前页面,跳转到应用内的某个页面。但是不允许跳转到 导航 页面 (1)wx.navigateTo 阅读全文
posted @ 2019-06-13 10:24 fm060 阅读(3554) 评论(0) 推荐(0) 编辑
摘要: 插件: 1)ESlint 2)vetur 3)Prettier - Code formatter 4)Manta's Stylus Supremacy 阅读全文
posted @ 2019-05-20 17:17 fm060 阅读(1998) 评论(0) 推荐(1) 编辑
摘要: function vie(){ var speed = 100 return { getSpeed: () => speed, speedUp:function(){ speed+=10 } } } console.log(vie().getSpeed()) vie().speedUp() cons 阅读全文
posted @ 2019-05-04 21:09 fm060 阅读(214) 评论(0) 推荐(0) 编辑
摘要: let time = 10 let intervalFunc = window.setInterval(() => { time = time - 1 if (time < 1) { window.clearInterval(intervalFunc) } }, 1000) 阅读全文
posted @ 2019-04-22 18:01 fm060 阅读(7901) 评论(1) 推荐(1) 编辑
摘要: class Box{ constructor(){ console.log("啦啦啦,今天天气好晴朗");//当实例化对象时该行代码会执行。 } kk(){ console.log(123456) } } var obj=new Box(); obj.kk() js语言中,生成实例对象的传统方法就是通过构造函数: fun... 阅读全文
posted @ 2019-04-14 20:24 fm060 阅读(143) 评论(0) 推荐(0) 编辑
摘要: let data = {} data.a=1 data.b=16 function fa({a=1,b=3}){ console.log(a) console.log(b) } fa(data) function fb(a=1,b=3){ ... 阅读全文
posted @ 2019-02-27 23:16 fm060 阅读(612) 评论(0) 推荐(0) 编辑
摘要: 1.安装 "babel-polyfill" npm install --save-dev babel-polyfill 2.在入口main.js文件引入:import 'babel-polyfill' 3.在build文件夹下找到webpack.base.conf.js.修改入口方式 4.最后,再依 阅读全文
posted @ 2019-02-12 15:33 fm060 阅读(1148) 评论(0) 推荐(0) 编辑
摘要: A,vue生命周期 1.creat->beforeCreat(创建完成之前) 2.mounted->beforeMount (挂载之前) 3.updated->beforeUpdate(更新数据之前) 4.destroy->beforeDestroy(销毁之前) B,vue函数 1.data(初始化 阅读全文
posted @ 2019-02-11 23:23 fm060 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 安装依赖 sass-loader, sass-resources-loader, node-sass <style type="text/scss" lang="scss" scoped> .list{padding: 10px;font-size: 14px; p{border-bottom: 1 阅读全文
posted @ 2019-01-09 14:26 fm060 阅读(117) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 16 下一页