require("../index.css");我这样添加了,但是它自动帮我加了.js
你需要 seajs-css,A Sea.js plugin for loading css
或者 Install with spm:
$ spm install seajs/seajs-css
使用方法:
<script src="path/to/sea.js"></script> <script src="path/to/seajs-css.js"></script> <script> // seajs can load css file after loading css plugin. seajs.use("path/to/some.css") </script>
因为新版本的seajs要加载一个css插件,所以要加载seajs-css插件才可以的