上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 77 下一页
摘要: ##vue生命周期 beforeCreate :底层做一些链 created:响应数据变化 dom 还没有挂载 beforeMount: 基本用不到 检测有没有template 属性 如果有template 渲染为render 函数 render : > render(createElement) { //虚拟dom 是一个对象 return createElement('div',{ attrs 阅读全文
posted @ 2019-09-17 20:25 1点 阅读(167) 评论(0) 推荐(0)
摘要: 这个方法你要全局设置 //jquery全局配置 $.ajaxSetup({ cache: false, crossDomain: true, headers :{'Authorization':token}, complete: function (xhr) { console.log(xhr) i 阅读全文
posted @ 2019-09-17 17:59 1点 阅读(2687) 评论(0) 推荐(0)
摘要: 2进制 :0b8进制: 0o16进制: 0x10进制:原来的数据 进制转换:bin() 方法:转化为 2进制 >>> bin(10)'0b1010'oct() 方法:转化为 8进制>>> oct(10)'0o12'int() 方法:转化为10进制>>> int(0o12)10hex() 方法:转化为 阅读全文
posted @ 2019-09-16 20:06 1点 阅读(174) 评论(0) 推荐(0)
摘要: / 除法 自动转化为浮动数 // 整除 只保留整数部分 >>> 2/21.0>>> 2//21>>> 1//20 阅读全文
posted @ 2019-09-16 19:54 1点 阅读(299) 评论(0) 推荐(0)
摘要: 整型与浮动型 整数/浮动数=浮点型整数/整数 = 浮点型 例如:>>> type(1/1)<class 'float'>>>> type(1/1.0)<class 'float'> 整数*整数=整数 整数*浮点数 = 浮点数 <class 'float'>>>> type(1*1)<class 'i 阅读全文
posted @ 2019-09-16 19:41 1点 阅读(288) 评论(0) 推荐(0)
摘要: // 文本最多两行展示 .text-line-2 { overflow: hidden; text-overflow: ellipsis; word-break: break-word; -webkit-line-clamp: 2; -webkit-box-orient: vertical; dis 阅读全文
posted @ 2019-09-16 16:48 1点 阅读(704) 评论(0) 推荐(0)
摘要: 添加商品 基本 库存/规格 参数 详情 购买权限 ... 阅读全文
posted @ 2019-09-11 18:36 1点 阅读(2570) 评论(0) 推荐(0)
摘要: 看代码: 输出: 解决: 采用深拷贝的方法 : 阅读全文
posted @ 2019-09-10 16:23 1点 阅读(2639) 评论(0) 推荐(0)
摘要: computed 与watched 的区别: 异步请求 数据变化 使用watched ,计算属性不支持异步 计算一个值的结果 用 computed computed 与methods的区别: computed 有缓存 当数据的值没有改变的时候 我们不会重新执行方法,而 methods 会 阅读全文
posted @ 2019-09-09 22:59 1点 阅读(445) 评论(0) 推荐(0)
摘要: 小程序获取用户信息 1.先判断是否授权 wx.getSetting({ success: (data) => { console.log(data); if (data.authSetting['scope.userInfo']) { wx.getUserInfo({ success: (data) 阅读全文
posted @ 2019-09-09 10:27 1点 阅读(478) 评论(0) 推荐(0)
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 77 下一页