上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页
摘要: 一、this指向问题 1.普通函数调用,此时 this 指向 window function fn() { console.log(this); // window } fn(); // window.fn(),此处默认省略window 2.构造函数调用, 此时 this 指向 实例对象 funct 阅读全文
posted @ 2021-04-06 09:25 web格调 阅读(467) 评论(0) 推荐(0) 编辑
摘要: keep-alive keep-alive是一个抽象组件:它自身不会渲染一个DOM元素,也不会出现在父组件链中;使用keep-alive包裹动态组件时,会缓存不活动的组件实例,而不是销毁它们。 阅读全文
posted @ 2021-04-02 17:49 web格调 阅读(73) 评论(0) 推荐(0) 编辑
摘要: wx.showLoading({ type: "loading..." }) wx.hideLoading() 阅读全文
posted @ 2021-04-01 19:32 web格调 阅读(34) 评论(0) 推荐(0) 编辑
摘要: wx.showLoading({ title: '加载中...', }); wx.hideLoading() 阅读全文
posted @ 2021-03-27 13:32 web格调 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 在添加地址后面直接拼接 Api.auction.comment + "&r=api/auction/publish-comment" 阅读全文
posted @ 2021-03-12 09:28 web格调 阅读(167) 评论(0) 推荐(0) 编辑
摘要: :class="`${condition1 ? 'font' : ''} ${condition1 ? ' size' : ''}`" 阅读全文
posted @ 2021-03-10 16:27 web格调 阅读(953) 评论(0) 推荐(0) 编辑
摘要: componentsuni-app组件目录,放可复用的组件 pages 业务页面文件存放的目录 static 存放应用引用静态资源(如图片、视频等)的地方,注意:静态资源只能存放于此 App.vue 应用配置,用来配置App全局样式以及监听 应用生命周期 main.js Vue初始化入口文件 mai 阅读全文
posted @ 2021-03-08 09:14 web格调 阅读(2401) 评论(0) 推荐(0) 编辑
摘要: clearInterval() 方法可取消由 setInterval() 设置的 timeout。 clearInterval() 方法的参数必须是由 setInterval() 返回的 ID 值。 阅读全文
posted @ 2021-03-05 15:28 web格调 阅读(666) 评论(0) 推荐(0) 编辑
摘要: var timestamp = Date.parse(new Date()); 输出结果 结果:1280977330000 这种方法精确到秒 var timestamp = (new Date()).valueOf(); var timestamp=new Date().getTime(); 输出接 阅读全文
posted @ 2021-03-05 15:25 web格调 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 子组件使用 fun(){ this.$emit("传值名称", this.nav_pitch); } 父组件 @传值名称="fun()" fun(e){ console.log(e) 接受参数 } 阅读全文
posted @ 2021-02-26 15:31 web格调 阅读(57) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页