请问为什么3.x 拓展插件 html页面不能直接引入js?

Snipaste_2024-03-18_21-22-06 Snipaste_2024-03-18_21-22-26 2.x拓展插件可以纯html+js写界面 ,放到3.x就不行了,难道要重写吗?