10 2020 档案
vue 动态加载css本地背景图片
摘要:在css中,正常这么引入是可以显示的 background: url(../assets/images/banner.png) no-repeat center; 代码中看的效果如下: 但是在js中引入则需要加上 require(),不然无法显示 转载:https://blog.csdn.net/s
阅读全文
js屏蔽手机的物理返回键
摘要:$(document).ready(function() { if (window.history && window.history.pushState) { $(window).on('popstate', function () { window.history.pushState('forw
阅读全文
vue插件开发
摘要:插件通常用来为 Vue 添加全局功能 使用插件 通过 Vue 的全局方法 Vue.use() 使用, 当然,在使用这个方法之前,你的 Vue 实例 必须已经初始化完成 import myPlugin from './plugIn/myPlugin' // 该方法,会调用 myPlugin 的 ins
阅读全文