jquery 移除和添加onclick 2019-11-07 本文已影响0人 Hi小胡 $(".btn").removeAttr("onclick"); // 移除onclick $(".btn").attr("onclick", "show();"); // 添加onclick