2
我已将jQuery
添加到我的angular 4
项目中,但我在使用旨在使用jQuery
的脚本时遇到问题。Angular 2/4和jquery脚本
jQuery
安装作为NPM包然后通过angulars加入CLI使用typings
命令
我想访问我的文件compontents.ts
那些jQuery
脚本。
有问题的脚本是:
"scripts": [
"../node_modules/jquery/dist/jquery.min.js"
],
,并在您的组件:在你的角cli.json this
很抱歉,但在该问题时,我已经有jQuery的经分型inplemented,我是后是如何实现的jQuery(滚动框)插件,所以我会能够调用'$(“#demo”)。scrollbox()'按照滚动条上的例子github – MrSandman
你已经完成了npm install jquery的权利吗? – Wandrille
Ofcourse,@Wandrille并通过类型添加jQuery – MrSandman