我可以在jQuery中链接函数调用吗?

Sam*_*tar 1 javascript jquery

我想执行以下操作:

$('#AccountID').change(SelectAccounts);

and then (SelectProducts)
Run Code Online (Sandbox Code Playgroud)

有没有什么方法可以让SelectAccounts函数在同一行之后执行SelectProducts函数?

And*_*ker 5

怎么样:

$("#AccountID").change(SelectAccounts).change(SelectProducts);
Run Code Online (Sandbox Code Playgroud)

(在jQuery中,事件处理程序按照它们绑定的顺序执行.SelectAccounts将始终运行SelectProducts)