摘要: 1.嵌套路由 (多级路由) 1.配置路由规则,使用children配置项: routes:[ { path: '/about", component:About, }, { path:' /home", component :Home , children:[ //通过children配置子级路由 阅读全文
posted @ 2022-12-01 11:58 风的方向· 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-11-08 11:13 风的方向· 阅读(17) 评论(0) 推荐(0) 编辑
摘要: ES6 的 class 属于一种“语法糖”,让写法更像面对对象的编程。 function Abc(x, y) { this.x = x; this.y = y; } Abc.prototype.add = function() { return this.x + this.y; } 等同于 clas 阅读全文
posted @ 2022-08-28 10:47 风的方向· 阅读(580) 评论(0) 推荐(0) 编辑
摘要: <template> <view class="lxy-content"> <scroll-view scroll-x="true" class="content-scroll" scroll-with-animation :scroll-left="scrollLeft"> <view v-for 阅读全文
posted @ 2022-08-18 15:41 风的方向· 阅读(146) 评论(0) 推荐(0) 编辑
摘要: document.execCommand('copy') IOS返回false; 为了安全考虑,exeCommand()可以操作系统剪切板,可能被恶意利用。所以规定不能用JS“直接”调用execCommand(‘copy’),而需要放到某一个有用户出发的事件响应函数内。如: $('#tzwxOk') 阅读全文
posted @ 2022-08-16 16:41 风的方向· 阅读(5525) 评论(0) 推荐(0) 编辑
摘要: var ccform = async function(){ var cpt = ''; var url = location.origin + location.pathname; var curl = window.location.href; let param = new URLSearch 阅读全文
posted @ 2022-08-16 13:56 风的方向· 阅读(355) 评论(0) 推荐(0) 编辑
摘要: css *{padding: 0;margin: 0} ul,li{list-style: none} /* ul{width: 120px;height: 120px;margin: 100px auto;border: 1px solid #333;} */ li{width: 50px;hei 阅读全文
posted @ 2019-07-26 17:49 风的方向· 阅读(154) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv=" 阅读全文
posted @ 2019-07-26 17:12 风的方向· 阅读(128) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv=" 阅读全文
posted @ 2019-07-26 17:11 风的方向· 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 1 阅读全文
posted @ 2019-07-26 17:04 风的方向· 阅读(68) 评论(0) 推荐(0) 编辑