Overriding native function?

后端 未结 7 1399
半阙折子戏
半阙折子戏 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.

提交回复
热议问题