会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
杨不凡
博客园
首页
新随笔
联系
管理
订阅
[置顶]
vue transform 实现无缝滚动以及轮播效果
摘要: <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 杨不凡
阅读(2010)
评论(0)
推荐(0)
2023年6月6日
元素筛选
摘要: nextAll() /*后边全部元素*/ prevAll() /*前边所有元素*/ children() /*子元素*/ parent() /*父元素(向上找一级)*/ parents() /*父元素(全部父元素)*/ siblings() /*兄弟元素*/ .replace(/<\/s>/g,""
阅读全文
posted @ 2023-06-06 09:56 杨不凡
阅读(13)
评论(0)
推荐(0)
2023年2月22日
vue $bus 和 settimeout 实现setinterval
摘要: main.js 实现 用settimeout 实现setinterval window.$bus = new Vue() window.setTimeToInterval = function (delay) { if (window.intervalTimeout) { clearTimeout(
阅读全文
posted @ 2023-02-22 13:18 杨不凡
阅读(56)
评论(0)
推荐(0)
2023年2月3日
浏览器密码框自动弹出账号密码的解决方法
摘要: 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 杨不凡
阅读(321)
评论(0)
推荐(0)
2022年12月20日
常用 Linux 命令
摘要: 1. 查看当做操作目录位置 > pwd2. 查看(当前)目录里边的文件内容 > ls //list > ls -l 或ll //显示文件的详细信息 > ls -al //all显示文件的详细信息(包括隐藏文件) > ls -a //显示目录全部文件名字(包括隐藏文件) > ls [-al] 目录 /
阅读全文
posted @ 2022-12-20 15:54 杨不凡
阅读(182)
评论(0)
推荐(0)
vue 组件之间的传值
摘要: $dispatch 只会通知自己的父亲,父亲的父亲,父亲的父亲 eventBus 所有的父组件和子组件 main.js 全局注册 // 向上通知 Vue.prototype.$dispatch = function (eventName,value) { let parent = this.$par
阅读全文
posted @ 2022-12-20 15:37 杨不凡
阅读(34)
评论(0)
推荐(0)
settimeout 实现 setinterval
摘要: let fn = () => { console.log('执行SI'); } function setTimeToInterval(fn, delay, times) { if (!times) { return } setTimeout(() => { fn() setTimeToInterva
阅读全文
posted @ 2022-12-20 15:30 杨不凡
阅读(33)
评论(0)
推荐(0)
浏览器版本检测网址
摘要: https://liulanmi.com/labs/core.html
阅读全文
posted @ 2022-12-20 15:26 杨不凡
阅读(121)
评论(0)
推荐(0)
js 数组去重
摘要: 利用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 杨不凡
阅读(25)
评论(0)
推荐(0)
常用 adb 命令
摘要: 打开系统设置主界面 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 杨不凡
阅读(42)
评论(0)
推荐(0)
下一页
公告