上一页 1 ··· 8 9 10 11 12 13 14 15 下一页
摘要: (1).文字超出一行,省略超出部分,显示’…’ 如果这种情况比较多,可以取一个切合作用的类名用于复用。 (2). 可以给定容器宽度限制,超出部分省略 3、html文字超过两行或三行就显示省略号 转载自https://blog.csdn.net/liwenfei123/article/details/ 阅读全文
posted @ 2018-07-18 09:25 chenlw101 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 原文:http://www.cnblogs.com/xiezhengcai/p/3956401.html 1. 服务端 io.on('connection',function(socket)); 监听客户端连接,回调函数会传递本次连接的socket io.sockets.emit('String', 阅读全文
posted @ 2018-07-09 17:06 chenlw101 阅读(160) 评论(0) 推荐(0) 编辑
摘要: var pet={ word:'...', speak:function(say){ console.log(say+' '+this.word) } } //pet.speak('speak')//speak ... var dog={ word:'wang' } //改变this到dog上 pet.speak.call(dog,'speak')... 阅读全文
posted @ 2018-07-04 17:18 chenlw101 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 百分比是根据父元素的,所以要将html也100% 阅读全文
posted @ 2018-07-03 17:00 chenlw101 阅读(514) 评论(0) 推荐(0) 编辑
摘要: 实现右上角三角,父元素需要加上overflow:hidden; 阅读全文
posted @ 2018-07-03 16:58 chenlw101 阅读(321) 评论(0) 推荐(0) 编辑
摘要: zbtime:"2018/07/04 14:30:00", //直播时间毫秒数 zbTimeHm:function(){ var time=this.zbtime; var HaoMiao = (new Date(time)).getTime(); //得... 阅读全文
posted @ 2018-07-03 16:56 chenlw101 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 共享 scope 使用共享 scope 的时候,可以直接从父 scope 中共享属性。因此下面示例可以将那么属性的值输出出来。使用的是父 scope 中定义的值。 js代码: html代码 输出结果: 隔离 scope 使用隔离 scope 的时候,无法从父 scope 中共享属性。因此下面示例无法 阅读全文
posted @ 2018-06-29 16:25 chenlw101 阅读(203) 评论(0) 推荐(1) 编辑
摘要: src:读取文件和文件夹 dest:生成文件(写文件) watch:监控文件 task:定制任务 pipe:以流的方式处理文件 bower的安装和使用 使用bower要求先安装node,请先安装node。 全局安装bower 打开cmd,运行命令 创建bower配置文件 控制台进入你项目所在文件的目 阅读全文
posted @ 2018-06-28 11:06 chenlw101 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 匹配符 *、**、!、{} 文件操作 del (替代gulp-clean) gulp-rename 描述:重命名文件 gulp-concat 描述:合并文件。 gulp-filter 描述:在虚拟文件流中过滤文件。 压缩 gulp-uglify 描述:压缩js文件大小。 gulp-csso 描述:压 阅读全文
posted @ 2018-06-28 09:34 chenlw101 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 内连接 外连接 阅读全文
posted @ 2018-06-27 14:18 chenlw101 阅读(81) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 下一页