摘要: s为要格式化的金额 n为要保留的小数位 function format(s,n){ return (s.toFixed(n) + '').replace(/\d{1,3}(?=(\d{3})+(\.\d*)?$)/g, '$&,') } 阅读全文
posted @ 2016-09-02 14:34 SH² 阅读(179) 评论(0) 推荐(0)
摘要: div{ width: 200px; height: 200px; FILTER: progid:DXImageTransform.Microsoft.Gradient(gradientType=0, startColorStr=#AC07BD, endColorStr=#f6f6f8); /*IE 6 7 8*/ ... 阅读全文
posted @ 2016-08-29 14:22 SH² 阅读(6039) 评论(0) 推荐(0)
摘要: AngularJS简介 四个核心思想:依赖注入、模块化、双向绑定、语义化标签。 AngularJS 前端 MVC 的设计与搭建 MVC(Model View Controller)模型(model)-视图(view)-控制器(controller)。 用一种业务逻辑、数据、界面显示分离的方法组织代码 阅读全文
posted @ 2016-07-29 17:47 SH² 阅读(146) 评论(0) 推荐(0)
摘要: React的开发背景 ReactJS官网地址:http://facebook.github.io/react/ Github地址:https://github.com/facebook/react JSX概述 eg:编写ReactJS: 这里需要注意的是,react并不依赖jQuery,当然我们可以 阅读全文
posted @ 2016-07-25 15:24 SH² 阅读(197) 评论(0) 推荐(0)
摘要: css部分: html部分: js部分:(此处需要引入jquery.js) 阅读全文
posted @ 2016-07-21 17:47 SH² 阅读(306) 评论(0) 推荐(0)
摘要: html部分: js部分: 阅读全文
posted @ 2016-07-21 14:04 SH² 阅读(814) 评论(0) 推荐(0)
摘要: html部分: js部分:(此处需要引入jquery.js) 阅读全文
posted @ 2016-07-21 14:03 SH² 阅读(176) 评论(0) 推荐(0)
摘要: css部分: html部分: js部分:js部分:(此处需要引入jquery.js和modernizr.js) 阅读全文
posted @ 2016-07-21 14:02 SH² 阅读(178) 评论(0) 推荐(0)
摘要: css部分: html部分: js部分:js部分:(此处需要引入jquery.js) 阅读全文
posted @ 2016-07-21 13:58 SH² 阅读(9604) 评论(1) 推荐(0)
摘要: css部分: html部分: js部分:(此处需要引入jquery.js、easing.js和scrollify.js ) 阅读全文
posted @ 2016-07-21 13:56 SH² 阅读(697) 评论(0) 推荐(1)