Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有调用对话框的 JS 函数
function SomeFunction { $('#editformdialog').dialog('open'); }
这显然是简化的。但是,我得到a is undefined我然后添加console.log(typeof dialog);并带回undefined
a is undefined
console.log(typeof dialog);
undefined
它在使用 jQuery 1.7.1 但不是 1.8.12 时有效(需要是最新的)。它适用于 Firefox 而不是 Chrome。
有任何想法吗?
谢谢,
JJ
http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/jquery-ui.js
使用最新版本,它已排序!