2017年8月17日
摘要: 引用:http://www.dewen.net.cn/q/8694/ 阅读全文
posted @ 2017-08-17 14:20 顺文章 阅读(191) 评论(0) 推荐(1) 编辑
2016年7月21日
摘要: 1.丢弃小数部分,保留整数部分 parseInt(5/2) 2.向上取整,有小数就整数部分加1 Math.ceil(5/2) 3.四舍五入. Math.round(5/2) 4.向下取整 Math.floor(5/2) Math 对象的方法 方法 描述 abs(x) 返回数的绝对值 acos(x) 阅读全文
posted @ 2016-07-21 10:41 顺文章 阅读(429) 评论(0) 推荐(1) 编辑
2016年7月20日
摘要: function discriCard(idCard){ var user = {}; //获取输入身份证号码 idCard //获取出生日期 idCard.substring(6, 10) + "-" + idCard.substring(10, 12) + "-" + idCard.substring(12, 14); //获取性别 ... 阅读全文
posted @ 2016-07-20 10:48 顺文章 阅读(459) 评论(0) 推荐(1) 编辑
2016年7月8日
摘要: 在windows上使用scrapyd-client 安装后,并不能使用相应的命令'scrapyd-deploy' 需要在"C:\Python27\Scripts" 目录下 增加scrapyd-deploy.bat文件 内容填充为: @echo off "C:\python27\python.exe" 阅读全文
posted @ 2016-07-08 14:00 顺文章 阅读(4369) 评论(0) 推荐(0) 编辑
2016年7月1日
摘要: 代码已放到Github上 https://github.com/zhangwen9229/MagnifyingGlassEffect 阅读全文
posted @ 2016-07-01 17:34 顺文章 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 圆形进图条 带刻度释义 代码已放到github上 https://github.com/zhangwen9229/FabricApps 阅读全文
posted @ 2016-07-01 17:29 顺文章 阅读(475) 评论(0) 推荐(0) 编辑
摘要: 弧度 = 角度/180 * Π 角度 = 弧度/Π * 180 阅读全文
posted @ 2016-07-01 17:07 顺文章 阅读(4042) 评论(0) 推荐(0) 编辑
摘要: ::-webkit-input-placeholder { /* WebKit browsers */ color: #999; } :-moz-placeholder { /* Mozilla Firefox 4 to 18 */ color: #999; } ::-moz-placeholder 阅读全文
posted @ 2016-07-01 17:06 顺文章 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 在chrome下: input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{ -webkit-appearance: none !important; margin: 0; } Firefox下: input[type="n 阅读全文
posted @ 2016-07-01 17:05 顺文章 阅读(1210) 评论(0) 推荐(0) 编辑
摘要: $ wget https://svn.apache.org/repos/asf/oodt/tools/oodtsite.publisher/trunk/distribute_setup.py $ python distribute_setup.py 阅读全文
posted @ 2016-07-01 17:04 顺文章 阅读(855) 评论(0) 推荐(0) 编辑