JS中fresh用法

有时候页面的某个功能暂时不需要触发,是需要在页面里的模态框触发,类似于懒加载的时候,需要用到fresh方法

主页先封装方法

var xxx={
fresh:function(){
}
}

在模态框里面调用方法

$(function(){
xxx.fresh();
})

xxx是某个你取的变量

以上

猜你喜欢

转载自blog.csdn.net/qq_28751497/article/details/82143516