02 2018 档案
摘要:created 钩子可以用来在一个实例被创建之后执行代码: var vm = new Vue({ el:'#box', data:{ msg:'12345' }, computed:{ reMsg:{ get:function(){ return this.msg.split('').reverse
阅读全文
摘要:{"keys": ["ctrl+shift+f"], "command": "reindent" , "args":{"single_line": false}},
阅读全文
摘要:Sublime Text 3 快捷键精华版 Ctrl+Shift+P:打开命令面板Ctrl+P:搜索项目中的文件Ctrl+G:跳转到第几行Ctrl+W:关闭当前打开文件Ctrl+Shift+W:关闭所有打开文件Ctrl+Shift+V:粘贴并格式化Ctrl+D:选择单词,重复可增加选择下一个相同的单
阅读全文
摘要:<view class='pay-switch'> <switch color='#1F3238' data-gongprice='{{gongprice}}' data-discounts='{{discounts}}' bindchange="switch1Change" /> </view>
阅读全文
摘要:onLoad: function (opt) { wx.showShareMenu({ withShareTicket: true }) if (opt){ // let haha =JSON.parse(opt); console.log(JSON.parse(opt.ones)); } }, o
阅读全文