摘要: function getUrlV() { var vars = [], hash; var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); for (var i = 0; i 阅读全文
posted @ 2022-10-18 14:29 超级玛丽和大力水手 阅读(106) 评论(0) 推荐(0) 编辑
摘要: width:calc(100% - 10px); 阅读全文
posted @ 2022-08-01 11:34 超级玛丽和大力水手 阅读(9) 评论(0) 推荐(0) 编辑
摘要: <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0 阅读全文
posted @ 2022-01-18 17:43 超级玛丽和大力水手 阅读(13) 评论(0) 推荐(0) 编辑
摘要: <ul @click ="click($event)"> <li></li> </ul> methods: { click(e) { e.target //是你当前点击的元素 e.currentTarget //是你绑定事件的元素 //获得点击元素的前一个元素 e.currentTarget.pre 阅读全文
posted @ 2021-12-31 17:41 超级玛丽和大力水手 阅读(913) 评论(0) 推荐(0) 编辑
摘要: 很有可能是没有设置 margin-left: auto; .semesterBnt{ width: 100px; height: 28px; justify-content: flex-end; margin-left: auto; } 阅读全文
posted @ 2021-12-31 14:09 超级玛丽和大力水手 阅读(528) 评论(0) 推荐(0) 编辑
摘要: <textarea class="weui-textarea" placeholder="请输入个性签名" rows="2" name="signature" maxlength="100" onkeyup="setLength(this,100,'wordsLength');"></textare 阅读全文
posted @ 2021-11-25 16:50 超级玛丽和大力水手 阅读(68) 评论(0) 推荐(0) 编辑
摘要: 解决办法 1、npm install sass-loader node-sass -D 2、npm install -g mirror-config-china --registry=http://registry.npm.taobao.org cnpm install sass-loader no 阅读全文
posted @ 2021-11-04 14:19 超级玛丽和大力水手 阅读(3318) 评论(0) 推荐(0) 编辑
摘要: 1、单引号和双引号 js里单引号和双引号并没有本质区别,都表示字符串字面量; 2、单双引号混合使用时候,内部引号会被视为字符串的一部分; 3、单引号和双引号可以进行相加; 4、反引号; 4.1 、 ES6开始表示字符串引入了新的方法,反引号(` `)表示模板字符串; 以前js输出模板这样写 4.2 阅读全文
posted @ 2021-06-23 11:12 超级玛丽和大力水手 阅读(3711) 评论(0) 推荐(0) 编辑
摘要: 1、先把项目里的node_modules文件夹删除,package-lock.json文件也删除; 2、以管理员身份进入vscode或者cmd(cd到项目目录); 3、npm cache clean --force(我也不知道什么意思,大概或许是“清除npm的缓存吧”); 4、再来一遍npm ins 阅读全文
posted @ 2021-01-08 17:25 超级玛丽和大力水手 阅读(1254) 评论(0) 推荐(0) 编辑
摘要: 报错信息 npm ERR! code ENOSELFnpm ERR! Refusing to install package with name "taro-echarts" under a packagenpm ERR! also called "taro-echarts". Did you na 阅读全文
posted @ 2020-12-03 18:07 超级玛丽和大力水手 阅读(304) 评论(0) 推荐(0) 编辑