摘要: <template> <div class="list" id="list"> <div class="cc rowup"> </div> </div> </template> <script> export default { components: {}, data () { return { 阅读全文
posted @ 2022-12-20 14:17 杨不凡 阅读(1527) 评论(0) 推荐(0) 编辑
摘要: nextAll() /*后边全部元素*/ prevAll() /*前边所有元素*/ children() /*子元素*/ parent() /*父元素(向上找一级)*/ parents() /*父元素(全部父元素)*/ siblings() /*兄弟元素*/ .replace(/<\/s>/g,"" 阅读全文
posted @ 2023-06-06 09:56 杨不凡 阅读(6) 评论(0) 推荐(0) 编辑
摘要: main.js 实现 用settimeout 实现setinterval window.$bus = new Vue() window.setTimeToInterval = function (delay) { if (window.intervalTimeout) { clearTimeout( 阅读全文
posted @ 2023-02-22 13:18 杨不凡 阅读(36) 评论(0) 推荐(0) 编辑
摘要: input 的 type 用 text 类型 <input type="text"> 此方法,兼容 Google 和 firefox @font-face{ font-family: "text-security-disc"; src: url("https://raw.githubusercont 阅读全文
posted @ 2023-02-03 12:57 杨不凡 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 1. 查看当做操作目录位置 > pwd2. 查看(当前)目录里边的文件内容 > ls //list > ls -l 或ll //显示文件的详细信息 > ls -al //all显示文件的详细信息(包括隐藏文件) > ls -a //显示目录全部文件名字(包括隐藏文件) > ls [-al] 目录 / 阅读全文
posted @ 2022-12-20 15:54 杨不凡 阅读(171) 评论(0) 推荐(0) 编辑
摘要: $dispatch 只会通知自己的父亲,父亲的父亲,父亲的父亲 eventBus 所有的父组件和子组件 main.js 全局注册 // 向上通知 Vue.prototype.$dispatch = function (eventName,value) { let parent = this.$par 阅读全文
posted @ 2022-12-20 15:37 杨不凡 阅读(22) 评论(0) 推荐(0) 编辑
摘要: let fn = () => { console.log('执行SI'); } function setTimeToInterval(fn, delay, times) { if (!times) { return } setTimeout(() => { fn() setTimeToInterva 阅读全文
posted @ 2022-12-20 15:30 杨不凡 阅读(21) 评论(0) 推荐(0) 编辑
摘要: https://liulanmi.com/labs/core.html 阅读全文
posted @ 2022-12-20 15:26 杨不凡 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 利用Set const res1 = Array.from(new Set(arr)); 两层for循环+splice const unique1 = arr => { let len = arr.length; for (let i = 0; i < len; i++) { for (let j 阅读全文
posted @ 2022-12-20 15:22 杨不凡 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 打开系统设置主界面 adb shell am start com.android.settings/com.android.settings.Settings 查看设备 adb devices 返回设置 adb shell am start -n com.android.settings/.Sett 阅读全文
posted @ 2022-12-20 14:46 杨不凡 阅读(32) 评论(0) 推荐(0) 编辑