在a.html中引入外部a.js。a.js為:function A(){}A.prototype.f="123";為什么在a.html中找不到A的原型呢?只有在a.html中聲明A.prototype才有用
外部引入js中的prototype
暮色呼如
2018-09-12 17:05:33