标签:sub function ret highlight 扩展 ati console asc turn
console.log(Array.prototype.sort)//ƒ substring() { [native code] } console.log(String.prototype.substring) //字符串扩展 String.prototype.addstring = function(){ return this+‘字符串扩展‘ } console.log(‘ff‘.addstring())//ff字符串扩展
标签:sub function ret highlight 扩展 ati console asc turn
原文地址:https://www.cnblogs.com/whlBooK/p/10704683.html