摘要:
Array.prototype.getMax = function() {// 给数组对象添加了一个方法,叫做getMax。 var max = 0; for ( var x = 1; x this[max]) { max = x; } } return this[max];};//给string添加一个去除两端空白的方法。trim();String.prototype.trim = function() { // 1,定义头角标,和尾角标。 var start = 0, end = this.lengt... 阅读全文
posted @ 2014-01-14 23:42
VIJAY-YAN
阅读(174)
评论(0)
推荐(0)
摘要:
hello.jsalert("hello haha"); 阅读全文
posted @ 2014-01-14 23:38
VIJAY-YAN
阅读(216)
评论(0)
推荐(0)

浙公网安备 33010602011771号