通过在原型上新增一个方法
String.prototype.addFn = function(){ console.log("add1233") }; let a='add'; a.addFn() //add1233
京公网安备 11010502049817号