js
小红的传人
正经人
展开
-
防抖和节流
防抖节流转载 2023-01-09 15:02:13 · 147 阅读 · 3 评论 -
vue setInterval启动与停止
vue setInterval启动与停止data () { return { otimer:null, }},mounted () { this.otimer = setInterval(() => { //逻辑 }, 6000); this.$once('hook:beforeDestroy', () => {//页面关闭 console.log('自闭了') clearInt原创 2021-07-30 16:34:57 · 5847 阅读 · 3 评论 -
js得到导航栏参数
js得到导航栏参数function getUrlKey(name){//得到导航栏参数 return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.href) || [, ""])[1].replace(/\+/g, '%20')) || null}getUrlKey('id')//使用...原创 2021-07-19 17:45:07 · 684 阅读 · 0 评论