上一页 1 ··· 5 6 7 8 9 10 11 12 13 14 下一页
摘要: 1. <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0" /> 2. <meta http-equiv="X-UA-Compatible" content 阅读全文
posted @ 2021-12-01 17:36 吃饭七分饱 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 对有加载状态的异步组件的封装 /** * 处理路由页面切换时,异步组件加载过渡的处理函数 * @param {Object} AsyncView 需要加载的组件,如 import('@/components/home/Home.vue') */ // 使用方式 const helloWorld = 阅读全文
posted @ 2021-12-01 15:16 吃饭七分饱 阅读(523) 评论(0) 推荐(0) 编辑
摘要: 切换国际化 this.$i18n.locale = locale this.$root.$i18n.locale = locale 阅读全文
posted @ 2021-11-28 20:52 吃饭七分饱 阅读(631) 评论(0) 推荐(0) 编辑
摘要: .rem(@px) { @var: unit(@px / 100); @rem: ~'@{var}rem'; } // 使用 width: .rem(98px)[@rem]; 阅读全文
posted @ 2021-11-18 18:29 吃饭七分饱 阅读(168) 评论(0) 推荐(0) 编辑
摘要: let j = d.createElement('script'); j.async = true; j.src ='js地址'; if (typeof callback "function") { if (typeof document.attachEvent !== "object") { j. 阅读全文
posted @ 2021-11-08 10:53 吃饭七分饱 阅读(308) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/LookingNorth/article/details/103311207 阅读全文
posted @ 2021-11-06 12:15 吃饭七分饱 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 手机内置Safari浏览器打开:http://www.pgyer.com/tools/udid 阅读全文
posted @ 2021-11-05 11:17 吃饭七分饱 阅读(366) 评论(0) 推荐(0) 编辑
摘要: ios new Date(new Date() + 86400000) 输出为 chrome浏览器正常 可以将new Date() + 86400000先加然后new Date()赋值 阅读全文
posted @ 2021-10-26 22:26 吃饭七分饱 阅读(132) 评论(0) 推荐(0) 编辑
摘要: // vue相同路由跳转报错问题处理 const originalPush = VueRouter.prototype.push VueRouter.prototype.push = function push(location, onResolve, onReject) { if(onResolv 阅读全文
posted @ 2021-10-09 22:49 吃饭七分饱 阅读(811) 评论(0) 推荐(0) 编辑
摘要: css 设置 body { background: red} app能获取到body背景色设置为webview底色 阅读全文
posted @ 2021-10-06 21:16 吃饭七分饱 阅读(118) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 14 下一页