摘要: scanQrcode:function (callBack) { let data = { appId: JSON.parse(sessionStorage.getItem('appIdSecret')).appId, url: window.location.href.split('#')[0] 阅读全文
posted @ 2019-01-21 10:56 前端小栈 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 调用:this.onBridgeReady(JSON.parse(res.data.data)); 阅读全文
posted @ 2018-11-12 15:08 前端小栈 阅读(392) 评论(0) 推荐(0) 编辑
摘要: applyText.vue <template> <div v-html='apply'> {{apply}} </div></template><script>export default { name: 'applyText', data() { return { apply: '' } }, 阅读全文
posted @ 2018-11-12 14:51 前端小栈 阅读(2477) 评论(0) 推荐(0) 编辑
摘要: 组件: 阅读全文
posted @ 2018-11-12 14:31 前端小栈 阅读(881) 评论(0) 推荐(0) 编辑
摘要: import CryptoJS from 'crypto-js'export function Encrypt(word) { let key = 'adsyto1234567890'; let iv = '123456789channel'; key = CryptoJS.enc.Utf8.par 阅读全文
posted @ 2018-11-08 09:08 前端小栈 阅读(1461) 评论(0) 推荐(0) 编辑
摘要: router.beforeEach((to, from, next) => { if (localStorage.getItem("userRole") !== 'operator') { if (router.options.routes.length < 14) { let auditRoute 阅读全文
posted @ 2018-11-08 09:06 前端小栈 阅读(3551) 评论(0) 推荐(0) 编辑
摘要: <script src="//cdn.jsdelivr.net/npm/eruda"></script> <script> eruda.init(); </script> 阅读全文
posted @ 2018-09-21 14:41 前端小栈 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 1、ajax技术的背景 不可否认,ajax技术的流行得益于google的大力推广,正是由于google earth、google suggest以及gmail等对ajax技术的广泛应用,催生了ajax的流行。而这也让微软感到无比的尴尬,因为早在97年,微软便已经发明了ajax中的关键技术,并且在99 阅读全文
posted @ 2018-04-28 17:38 前端小栈 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 1.减少Http请求数量 2.使用CDN(内容分发网络) 放置副本服务器 3.添加Expire/Cache-Control头 expire头的内容是一个时间值,值就是资源在本地的过期时间,存在本地,在本地缓存阶段,找到一个对应的资源值,当前时间还没超过资源的过期时间,就直接使用这一个资源,不会发送H 阅读全文
posted @ 2018-04-20 17:44 前端小栈 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 网页布局(layout)是 CSS 的一个重点应用。 布局的传统解决方案,基于盒状模型,依赖 display 属性 + position属性 + float属性。它对于那些特殊布局非常不方便,比如,垂直居中就不容易实现。 2009年,W3C 提出了一种新的方案 Flex 布局,可以简便、完整、响应式 阅读全文
posted @ 2018-04-09 17:03 前端小栈 阅读(172) 评论(0) 推荐(0) 编辑