js 字符串,数组扩展
生活随笔
收集整理的這篇文章主要介紹了
js 字符串,数组扩展
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
console.log(Array.prototype.sort)//? substring() { [native code] }console.log(String.prototype.substring)//字符串擴展String.prototype.addstring = function(){return this+'字符串擴展'}console.log('ff'.addstring())//ff字符串擴展
轉載于:https://www.cnblogs.com/whlBooK/p/10704683.html
總結
以上是生活随笔為你收集整理的js 字符串,数组扩展的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 并发队列、线程池、锁
- 下一篇: project01