会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
顺文章
博客园
首页
新随笔
新文章
联系
管理
订阅
1
2
3
下一页
2017年8月17日
js 判断手机横竖屏的实现方法(不依赖任何其他库)
摘要: 引用:http://www.dewen.net.cn/q/8694/
阅读全文
posted @ 2017-08-17 14:20 顺文章
阅读(191)
评论(0)
推荐(1)
编辑
2016年7月21日
js只保留整数,向上取整,四舍五入,向下取整等函数
摘要: 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 顺文章
阅读(431)
评论(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 顺文章
阅读(461)
评论(0)
推荐(1)
编辑
2016年7月8日
'scrapyd-deploy' 不是内部或外部命令,也不是可运行的程序 或批处理文件。
摘要: 在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 顺文章
阅读(4044)
评论(0)
推荐(0)
编辑
placeholder 颜色更改
摘要: ::-webkit-input-placeholder { /* WebKit browsers */ color: #999; } :-moz-placeholder { /* Mozilla Firefox 4 to 18 */ color: #999; } ::-moz-placeholder
阅读全文
posted @ 2016-07-01 17:06 顺文章
阅读(248)
评论(0)
推荐(0)
编辑
移除HTML5 input在type="number"时的上下小箭头
摘要: 在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)
编辑
linux 安装python-setuptools
摘要: $ 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 顺文章
阅读(856)
评论(0)
推荐(0)
编辑
1
2
3
下一页
公告