import * as $ from 'jquery';
<div>...</div>
ngAfterViewChecked() {
const parentWidth = $('.resizable').parent().width();
if (parentWidth) {
$('.resizable').resizable({}) // 这块报错:$(...).resizable is not a function
}
}
angular引用jq中resizable()
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
1条回答 默认 最新
Alice_czy 2021-07-20 17:29关注1,打印一下$('.resizable') 看看上面有没有这个方法
2,resizable() 方法参数补充上试试
3,is not a function 大多属于语法问题,查看一下官方使用文档解决 无用评论 打赏 举报