2016年8月13日

Math方法

摘要: var values=[1,2,3,4,5,56]; var a=Math.max.apply(this,values); Math.ceil();//向上四舍五入 Math.floor();//向下四舍五入 Math.round();//正常四舍五入 Math.random();//0~1的一个小 阅读全文

posted @ 2016-08-13 11:07 Kooing 阅读(107) 评论(0) 推荐(0) 编辑

url编码方法(暂时知道是什么

摘要: var a="https://i.cnblogs.com/EditPosts.aspx?opt=1" encodeURI(a); encodeURIComponent(); decodeURI(a); decodeURIComponent(); 阅读全文

posted @ 2016-08-13 08:53 Kooing 阅读(177) 评论(0) 推荐(0) 编辑

string的一些操作,类似数组

摘要: 1.串的切割 var a="hello world";//a.length=11 alert(a.slice(3)); alert(a.substring(3)); alert(a.substr(3));//三个都lo world alert(a.slice(3,7));//3到7 alert(a. 阅读全文

posted @ 2016-08-13 07:45 Kooing 阅读(441) 评论(0) 推荐(0) 编辑

导航