上一页 1 2 3 4 5 6 7 8 ··· 10 下一页
摘要: 解决页面首次加载空白问题,因为是按顺序加载,如果css文件放在最后,先把DOM元素加载了才加载css,就会出现暂时空白的问题 阅读全文
posted @ 2021-01-02 23:10 在学习编程的lsy呀 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 1 git branch --list 查看分支列表 2 git branch dev 新建dev分支 3 git checkout dev 进入分支 4 git push 更新仓库 也可新建并进入分支 一行命令 2和3合并 git checkout -b dev 备注 分支名称可以设置为版本号 阅读全文
posted @ 2021-01-02 19:22 在学习编程的lsy呀 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 更新仓库 1、git status 2、git add . 3、git commit -m 'xxxx备注' 4、git push 若出现 Please tell me who you are. 则 进行1、git config --global user.name "xxxx" 2、git con 阅读全文
posted @ 2020-12-31 20:19 在学习编程的lsy呀 阅读(409) 评论(1) 推荐(0) 编辑
摘要: http-server 是一个轻量级的基于 nodejs 的 http 服务器,它可以使任意一个目录成为服务器的目录,完全抛开后台的工程,直接运行想要的 js 代码。所以安装前需要你已安装了 node。 http-server //启动 http-server -c-l //不以缓存的形式刷新页面 阅读全文
posted @ 2020-12-31 19:56 在学习编程的lsy呀 阅读(338) 评论(0) 推荐(0) 编辑
摘要: 安装淘宝镜像 npm install -g cnpm --registry=https://registry.npm.taobao.org 然后再 cnpm install -g http-server 即可 如果出现报错cnpm : 无法加载文件 C:\Users\hp\AppData\Roami 阅读全文
posted @ 2020-12-31 19:47 在学习编程的lsy呀 阅读(1427) 评论(0) 推荐(0) 编辑
摘要: 因为npm是Node.js的包管理工具(package manager),npm的应用基于node.js 我们在Node.js上开发时,会用到很多别人写的JavaScript代码。如果我们要使用别人写的某个包,每次都根据名称搜索一下官方网站,下载代码,解压,再使用,非常繁琐。于是一个集中管理的工具应 阅读全文
posted @ 2020-12-31 19:24 在学习编程的lsy呀 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 1、beforeCreate 在实例初始化之后,数据观测和event/watcher时间配置之前被调用。 2、created 实例已经创建完成之后被调用。在这一步,实例已经完成以下的配置:数据观测,属性和方法的运算,watch/event事件回调。然而,挂载阶段还没开始,$el属性目前不可见。 3、 阅读全文
posted @ 2020-01-24 01:29 在学习编程的lsy呀 阅读(109) 评论(0) 推荐(0) 编辑
摘要: JS的正则表达式 强:字母+数字+特殊字符   ^(?![a-zA-z]+$)(?!\d+$)(?![!@#$%^&*]+$)(?![a-zA-z\d]+$)(?![a-zA-z!@#$%^&*]+$)(?![\d!@#$%^&*]+$)[a-zA-Z\d!@#$%^&*]+$ 阅读全文
posted @ 2020-01-22 23:21 在学习编程的lsy呀 阅读(1111) 评论(0) 推荐(0) 编辑
摘要: <input type="text" placeholder="请输入邮箱" id="email"> <script> email.onchange = function(){ var email = this.value; var reg = /^([a-zA-Z]|[0-9])(\w|\-)+@ 阅读全文
posted @ 2020-01-21 21:52 在学习编程的lsy呀 阅读(1384) 评论(0) 推荐(0) 编辑
摘要: <div style="background-color: #2e2828;"> <ul class="tab"> <li v-for="item in menuTab" :key="item.id" :class="{'current':item.current}" @click="togglem 阅读全文
posted @ 2020-01-21 00:18 在学习编程的lsy呀 阅读(265) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 10 下一页