04 2018 档案

摘要:1.文字一行显示 超出的用...表示 .ellipsis{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } 1.文字一行显示 超出的用...表示 .ellipsis{ overflow: hidden; text-o 阅读全文
posted @ 2018-04-08 11:27 Sugеr 阅读(105) 评论(0) 推荐(0)
摘要:地址 阅读全文
posted @ 2018-04-07 16:23 Sugеr 阅读(92) 评论(0) 推荐(0)
摘要:1. 安装 http-server 模块 npm install http-server -g 全局安装 2.在需要的文件夹 启动 http-server 默认的端口是8080 可以使用 -p 参数指定一个端口号 阅读全文
posted @ 2018-04-03 14:32 Sugеr 阅读(399) 评论(0) 推荐(0)
摘要:npm install <name>安装nodejs的依赖包 例如npm install express 就会默认安装express的最新版本,也可以通过在后面加版本号的方式安装指定版本,如npm install express@3.0.6 npm install <name> -g 将包安装到全局 阅读全文
posted @ 2018-04-03 09:36 Sugеr 阅读(294) 评论(0) 推荐(0)
摘要:挑选图标的过程(共6步) <link rel="stylesheet" href="http://at.alicdn.com/t/font_wyhhdpv5lhvbzkt9.css"> <link rel="stylesheet" href="http://at.alicdn.com/t/font_ 阅读全文
posted @ 2018-04-02 15:29 Sugеr 阅读(630) 评论(0) 推荐(0)
摘要:1. 函数参数默认值 不使用ES6 为函数的参数设置默认值: function foo(height, color) { var height = height || 50; var color = color || 'red'; //... } 这样写一般没问题,但是,当参数的布尔值为false时 阅读全文
posted @ 2018-04-02 14:11 Sugеr 阅读(161) 评论(0) 推荐(0)