会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
fm060
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
···
16
下一页
2019年6月13日
微信小程序-组件
摘要: 1.轮播图 2.下拉选择
阅读全文
posted @ 2019-06-13 10:33 fm060
阅读(203)
评论(0)
推荐(0)
编辑
微信小程序-常用api
摘要: 1.路由5种跳转方式 (1)wx.switchTab :只能跳转到导航页,并关闭其他的导航页 (1)wx.reLaunch :关闭所有页面,打开到应用内的某个页面 (1)wx.redirectTo :关闭当前页面,跳转到应用内的某个页面。但是不允许跳转到 导航 页面 (1)wx.navigateTo
阅读全文
posted @ 2019-06-13 10:24 fm060
阅读(3554)
评论(0)
推荐(0)
编辑
2019年5月20日
vscode使用eslint设置
摘要: 插件: 1)ESlint 2)vetur 3)Prettier - Code formatter 4)Manta's Stylus Supremacy
阅读全文
posted @ 2019-05-20 17:17 fm060
阅读(1998)
评论(0)
推荐(1)
编辑
2019年5月4日
经典闭包实例化,原型创建与继承
摘要: 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)
编辑
2019年4月22日
vue清除定时器,clearInterval
摘要: 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)
编辑
2019年4月14日
es6-class
摘要: 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)
编辑
2019年2月27日
js函数默认参数
摘要: 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)
编辑
2019年2月12日
Vue2+Webpack+ES6 兼容低版本浏览器(IE9)解决方案
摘要: 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)
编辑
2019年2月11日
vue总结2018
摘要: 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)
编辑
2019年1月9日
vue使用scss
摘要: 安装依赖 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
下一页
公告