如:fancybox插件$("#a").fancybox().trigger('click'); 转载于:https://www.cnblogs.com/yuanxianlai/archive/2012/07/20/2601186.html