Overriding native function?

后端 未结 7 1073
半阙折子戏
半阙折子戏 2020-12-30 05:00

The native document.createElement() is silly-stupid (it takes only a tag name and no attributes). How come I can\'t override it? How come this doesn\'t work?

相关标签:
7条回答
  • 2020-12-30 05:32

    As far as I know you cannot override native methods for security reasons. For non-native methods it's no problem at all.

    0 讨论(0)
提交回复
热议问题