import * as $ from 'jquery';
<div>...</div>
ngAfterViewChecked() {
const parentWidth = $('.resizable').parent().width();
if (parentWidth) {
$('.resizable').resizable({}) // 这块报错:$(...).resizable is not a function
}
}
1,打印一下$('.resizable') 看看上面有没有这个方法
2,resizable() 方法参数补充上试试
3,is not a function 大多属于语法问题,查看一下官方使用文档