如何写一个公用的方法

2025-03-21 18:05:28
推荐回答(2个)
回答1:

#n_submit 改为 .n_submit 通过class属性调函数

回答2:

在代码开始的地方声明
var window.Search = function() {
//你的代码
}
在哪都可以用