在普通的html页面中是需要放入关键性的js代码,但是在react中,不清楚在哪里放,另外语法是否也需要修改。
发现是webPack的地址问题,把后缀去掉留下 ip:8000/就好了
PHPz2017-04-18 09:19:17
React can also be placed directly, but the type of the script tag does not seem to be JavaScript. You can research the specific type later