我正在try 赋予我的插件回调功能,我希望它能以一种有点传统的方式运行:
myPlugin({options}, function() {
/* code to execute */
});
或
myPlugin({options}, anotherFunction());
How do I handle that parameter in the code? Is it treated as one full entity? I'm pretty sure I know where I'd place the execut或y code, but how do I get the code to execute? I can't seem to find a lot of literature on the topic.