摘要:
1.嵌套路由 (多级路由) 1.配置路由规则,使用children配置项: routes:[ { path: '/about", component:About, }, { path:' /home", component :Home , children:[ //通过children配置子级路由 阅读全文
摘要:
ES6 的 class 属于一种“语法糖”,让写法更像面对对象的编程。 function Abc(x, y) { this.x = x; this.y = y; } Abc.prototype.add = function() { return this.x + this.y; } 等同于 clas 阅读全文
摘要:
<template> <view class="lxy-content"> <scroll-view scroll-x="true" class="content-scroll" scroll-with-animation :scroll-left="scrollLeft"> <view v-for 阅读全文
摘要:
document.execCommand('copy') IOS返回false; 为了安全考虑,exeCommand()可以操作系统剪切板,可能被恶意利用。所以规定不能用JS“直接”调用execCommand(‘copy’),而需要放到某一个有用户出发的事件响应函数内。如: $('#tzwxOk') 阅读全文
摘要:
var ccform = async function(){ var cpt = ''; var url = location.origin + location.pathname; var curl = window.location.href; let param = new URLSearch 阅读全文
摘要:
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 阅读全文
摘要:
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv=" 阅读全文
摘要:
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv=" 阅读全文
摘要:
1 阅读全文