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.
我试图在 David Bushell 的这个插件中拥有一个简单的功能。
链接到索引
链接到 javascript 文件
函数名称:edit_mainlink
edit_mainlink: function(argument) { var my_var = argument; console.log(my_var); },
如何从外部调用函数并传递参数?谢谢你的帮助。直到。
尝试
$('#nestable').data('nestable').__proto__.edit_mainlink('something')
这将简单地登录'something'到控制台
'something'