在写前端queryselfplan.js代码时运用
$.dialog({
type: 'alert',
content: '该计划未创建'
});
报错:Uncaught TypeError: $(…).dialog is not a function
这时候查了很多资料,发现原因是jsp页面有css和js包没有导入,导包如下:
将以上包导入后,窗口正常弹出。