#CS 隐藏之后
在指定的毫秒数后隐藏元素
< div class =' message ' hide-after =' 3000 '> Hello! </ div>
开发设置
npm install
bower install
npm install -g uglify
与凉亭一起使用
"cs-hide-after": "git@github.com:cloudspace/cs-hide-after.git#master",
在您的 html 中包含以下内容
< script src =' ./<my>/bower_components/dist/cs-hide-after.min.js ' > </ script >
缩小
uglifyjs ./lib/cs-hide-after.js ./lib/cs-hide-after-directive.js