上一页 1 2 3 4 5 6 ··· 77 下一页
摘要: // 安装对应版本的包 yarn add node-sass@4.14.1 --dev yarn add sass-loader@8.0.0 --dev 阅读全文
posted @ 2021-06-06 21:48 1点 阅读(2992) 评论(0) 推荐(0) 编辑
摘要: 解决方案:卸载node-sass npm uninstall node-sass 然后安装最新版本(5.0之前) npm install node-sass@4.14.1 阅读全文
posted @ 2021-06-06 21:38 1点 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 新建vue.config.js module.exports = { css: { loaderOptions: { sass: { // 全局引入变量和 mixin additionalData: ` @import "@/assets/scss/variable.scss"; @import " 阅读全文
posted @ 2021-06-06 16:08 1点 阅读(1210) 评论(1) 推荐(0) 编辑
摘要: Strategy模式的设计意图是,定义一系列的算法,把它们一个个封装起来,并且使它们可以相互替换。此模式使得算法可以独立于使用它们的客户而变化,其结构图如下图所示。 • Strategy (策略)定义所有支持的算法的公共接口。 Context 使用这个接口来调用某ConcreteStrategy 定 阅读全文
posted @ 2021-05-19 15:16 1点 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 修改 nginx 配置文件 这个配置文件是你配置你网站站点的文件 比如我修改的就是blog.conf 这个文件 server {listen 80;server_name blog.onespot.website www.onespot.website onespot.website;root /v 阅读全文
posted @ 2021-05-08 09:13 1点 阅读(70) 评论(0) 推荐(0) 编辑
摘要: * 当执行one的时候,会创建一个执行上下文 * 编译阶段 * 创建VO * 1. 处理参数,把参数放入VO * 2. 扫描所有代码,找出function声明,从上往下依次执行 在编译阶段,会处理所有的函数声明,如果有重复的声明 * 后面会覆盖前面的声明 * 3.扫描var关键字 var是不赋值,只 阅读全文
posted @ 2021-04-15 18:03 1点 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 空格换行 <pre style="word-break: break-all;white-space: pre-wrap"> {{data&&data.content}} </pre> 网页代码: 后台数据: 效果: 阅读全文
posted @ 2021-04-15 14:25 1点 阅读(204) 评论(0) 推荐(0) 编辑
摘要: function dataURLtoFile(dataurl, filename) { let arr = dataurl.split(','), mime = arr[0].match(/:(.*?);/)[1] let bstr = atob(arr[1]) console.log(bstr) 阅读全文
posted @ 2021-04-13 16:19 1点 阅读(2630) 评论(0) 推荐(0) 编辑
摘要: !function (proto) { function getContext(context) { context = context || window; var type = typeof context; if (['number', 'string', 'boolean', 'null'] 阅读全文
posted @ 2021-03-10 22:46 1点 阅读(50) 评论(0) 推荐(0) 编辑
摘要: 1. 调起弹窗 <button class="wxLoginBtn u-m-t-30" open-type="getUserInfo" @getuserinfo="bindGetUserInfo" > 登录/注册 </button> 方法: bindGetUserInfo(data){ this.$ 阅读全文
posted @ 2021-03-10 18:00 1点 阅读(61) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 77 下一页