Array.prototype.in_array = function(e) { for (i = 0; i < this.length; i++) { if (this[i] == e) return true; } return false;};this
var array = [1,2,3,4,5];prototype
array.in_array(5);若是包含返回true,不包含返回falseio