03 2014 档案

摘要:先安装Sublime Text的sass 和 sass build插件,Sublime Text新建一个test.scss文件$color: #369;body { background: darken($color, 10%);}按Ctrl+B进行编译,成功编译结果显示如下: write C:\Users\work/test.css[Finished in 0.8s]如果报错[Decode error - output not utf-8]……就右键“我的电脑“-属性-高级(win8.1为高级系统设置)-弹出“环境变量”(底部),编辑PATH,把你的ruby/bin的地址前面加英文半角... 阅读全文
posted @ 2014-03-24 11:14 taodesign 阅读(2106) 评论(3) 推荐(0)
摘要://十进制转其他varx=110;alert(x);alert(x.toString(8));alert(x.toString(32));alert(x.toString(16));//其他转十进制varx='110';alert(parseInt(x,2));alert(parseInt(x,8));alert(parseInt(x,16));//其他转其他//先用parseInt转成十进制再用toString转到目标进制alert(String.fromCharCode(parseInt(141,8)))alert(parseInt('ff',16).toS 阅读全文
posted @ 2014-03-11 14:18 taodesign 阅读(213) 评论(0) 推荐(0)