简体   繁体   中英

Javascript on localhost doesn't work

我不知道Mac Pro上的localhost有什么问题,当我想从文件获取html代码到html页面时,尽管javascript工作100%,但它没有响应(我通过直接将其放在html使用attribute。

这是一个错字: <script scr="controller.js"></script> -必须是src

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM