- 博客(5)
- 收藏
- 关注
原创 commonJS(模块化规范)
commonJS commonJS 是 nodejs 默认模块管理方式,不支持es6的模块化管理方式,但支持所有es6+语法 require 引入模块、输入 对象|函数|类 require(‘模块名’) 不指定路径: 先找系统模块-> 再从项目环境找node_modules|bower_components (依赖模块)->not found 指定路径 : 指定路径 -&g...
2019-09-23 11:26:32
244
原创 npm的简单介绍,安装及使用
NPM: 干嘛的:帮助你安装模块(包),自动安装依赖,管理包(增,删,更新,项目所有包) 类似: bower yarn (https://yarn.bootcss.com/) 项目依赖dependencies: 只能在当前项目下使用,上线了,也需要这个依赖 --save 开发依赖devDependencies:只能在当前项目下使用 ,上线了,依赖不需要了 --save-dev 安装、卸载到全局...
2019-09-23 11:22:33
291
原创 cookie的封装
function setCookie(key,val,options){ options = options || {}; var expires=""; if(options.expires){ var d = new Date(); d.setDate(d.getDate()+options.expires); expir...
2019-09-11 17:56:31
129
原创 sass各种基础语法
@charset ‘utf-8’; /*一、===================================================================变量*/ /SASS允许使用变量,所有变量以$开头。/ $blue: #1875e7; div { color: $blue; } /如果变量需要镶嵌在字符串之中,就必须需要写在#{}之中。/ KaTeX parse er...
2019-09-11 17:48:18
250
原创 html命名规范
html命名规范 default/index.html 首页 404.html 404错误页 print.html 打印页 header.html 页头 footer.html 页脚 sitemap.html 网站地图 passport.html 通行证 rank.htm...
2019-09-04 22:03:28
421
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人