我在jQuery1.11.1中使用Angular2 (2.3.1)和gridstack.js (gridstack.js 0.3.0)。试着遵循这个例子
https://stackoverflow.com/questions/39901473/wrap-gridstack-js-into-angular-2-component
要使gridstack.js处理角2并获得以下错误,请执行以下操作:
zone.js:170 Uncaught:$(.).gridstack不是HTMLDocument的函数。(http://localhost:8080/:111:26) at mightThrow ( process webpackJsonp.87.module.exports (http://localhost:8080/scripts.bundle.js:88:9),3583:29)在过程中( webpackJsonp.87.module.exports (http://localhost:8080/scripts.bundle.js:88:9),3651:12)在ZoneDelegate.invokeTask (http://localhost:8080/polyfills.bundle.js:16599:31) at Zone.runTask (http://localhost:8080/polyfills.bundle.js:16398:47) at ZoneTask.invoke (http://localhost:8080/polyfills.bundle.js:16652:38) at data.args(匿名函数)
不知道该怎么解决这个问题。任何帮助都将不胜感激。
谢谢。
发布于 2018-07-17 09:10:43
$(.).gridstack不是函数
Grid堆栈扩展的jquery与在角组件中使用的jquery不同。
https://stackoverflow.com/questions/47981667
复制相似问题