03 2022 档案

摘要:1.判断手机设备的函数 // js判断是否是苹果设备 function checkIsAppleDevice() { var u = navigator.userAgent, app = navigator.appVersion; var ios = !!u.match(/\(i[^;]+;( U; 阅读全文
posted @ 2022-03-28 09:57 Aperio 阅读(2591) 评论(0) 推荐(0) 编辑
摘要:语法的不断更新,使得循环遍历对象的方法越来越多。做一下总结 1.原始版本: var testObj = {a:1,b:2,c:4} Object.keys(testObj).forEach((key, index)=>{ console.log(key) //a b c console.log(te 阅读全文
posted @ 2022-03-25 17:02 Aperio 阅读(288) 评论(0) 推荐(0) 编辑
摘要:1.配置js文件(底部触发命令) export const loadMore = { bind(el, binding) { // 获取element-ui定义好的scroll盒子 const SELECTWRAP_DOM = el.querySelector( ".el-select-dropdo 阅读全文
posted @ 2022-03-23 11:02 Aperio 阅读(409) 评论(0) 推荐(0) 编辑
摘要:<script> let testStr = 'helloworld'; let i; let tempObj = {}; for (i = 0; i < testStr.length; i++) { let charAt = testStr.charAt(i); //相当于挨个遍历字符串字符,将字 阅读全文
posted @ 2022-03-18 15:49 Aperio 阅读(43) 评论(0) 推荐(0) 编辑
摘要:实际的开发过程中,对于登录页,往往需要一些动态的页面的页面效果。vue-particles的使用,不仅可以动态变化,还能与鼠标产生互动效果。 具体的实现步骤如下: 1.安装插件: npm install vue-particles --save 2.main.js中使用插件: import VueP 阅读全文
posted @ 2022-03-09 16:44 Aperio 阅读(2066) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示