让js中的函数只有一次有效调用

设置隐藏域~

<input type="hidden" value="1" id="flag" />

其它三种方法

猜你喜欢

转载自www.cnblogs.com/Cengjianwei/p/11844367.html