2
如何通過名稱調用jQuery函數。例如:如何通過名稱調用jquery函數
var fn = 'hide',
myObj = $("#smth");
// here I want to hide myObj ($("#smth").hide())
// my variants were:
// fn.call(myObj) - doesn't work
// myObj.fn() - doesn't work (I've not expected, just tried =))