使用fireEvent方法: btn.fireEvent('click'); 转载于:https://www.cnblogs.com/timy/archive/2010/07/23/1783955.html