我在/client/main.html里有这个
<head>
<title>Meteor ESP8266</title>
<link href="https://gitcdn.github.io/bootstrap-toggle/2.2.2/css/bootstrap-toggle.min.css" rel="stylesheet">
<script src="https://gitcdn.github.io/bootstrap-toggle/2.2.2/js/bootstrap-toggle.min.js"></script>
</head>
<body>
<div id="app"></div>
</body>bootstrap-toggle.min.js的CDN给了我Uncaught ReferenceError: jQuery is not defined,因为CDN的javascript是在Meteor的内置jQuery加载之前加载的。
从Meteor 1.5中的CDN中添加JS的正确方法是什么?
发布于 2017-09-30 07:29:47
https://stackoverflow.com/questions/46500364
复制相似问题