摘要:
一、this指向问题 1.普通函数调用,此时 this 指向 window function fn() { console.log(this); // window } fn(); // window.fn(),此处默认省略window 2.构造函数调用, 此时 this 指向 实例对象 funct 阅读全文
摘要:
keep-alive keep-alive是一个抽象组件:它自身不会渲染一个DOM元素,也不会出现在父组件链中;使用keep-alive包裹动态组件时,会缓存不活动的组件实例,而不是销毁它们。 阅读全文
摘要:
wx.showLoading({ type: "loading..." }) wx.hideLoading() 阅读全文
摘要:
wx.showLoading({ title: '加载中...', }); wx.hideLoading() 阅读全文
摘要:
在添加地址后面直接拼接 Api.auction.comment + "&r=api/auction/publish-comment" 阅读全文
摘要:
:class="`${condition1 ? 'font' : ''} ${condition1 ? ' size' : ''}`" 阅读全文
摘要:
componentsuni-app组件目录,放可复用的组件 pages 业务页面文件存放的目录 static 存放应用引用静态资源(如图片、视频等)的地方,注意:静态资源只能存放于此 App.vue 应用配置,用来配置App全局样式以及监听 应用生命周期 main.js Vue初始化入口文件 mai 阅读全文
摘要:
clearInterval() 方法可取消由 setInterval() 设置的 timeout。 clearInterval() 方法的参数必须是由 setInterval() 返回的 ID 值。 阅读全文
摘要:
var timestamp = Date.parse(new Date()); 输出结果 结果:1280977330000 这种方法精确到秒 var timestamp = (new Date()).valueOf(); var timestamp=new Date().getTime(); 输出接 阅读全文
摘要:
子组件使用 fun(){ this.$emit("传值名称", this.nav_pitch); } 父组件 @传值名称="fun()" fun(e){ console.log(e) 接受参数 } 阅读全文