React.js: Example in tutorial not working

后端 未结 7 1088
陌清茗
陌清茗 2020-12-29 01:45

I\'m doing the React.js tutorial from http://facebook.github.io/react/docs/tutorial.html. Here are my files:

template.html:


    

        
7条回答
  •  孤独总比滥情好
    2020-12-29 02:02

    The following command works for me. But before the command, you may need to stop chrome process anyhow, can be from task manager.

    "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --allow-file-access-from-files --disable-web-security
    

    Second way, you can also use --allow-file-access-from-files flag in the chrome shortcut properties. But this is recommended only for developing purpose.

提交回复
热议问题