了不起的bug大师
2019-03-20 13:43
function fn(e) {
$(this).val(e.data) }
function a() {
$("input:last").focusout('慕课网', fn)
}
a();这段代码有点不理解。fn()和fn是怎么联系起来的?
函数调用啊。。。
你要是觉得这么写很难看明白很难理解的话 可以这样写
function a() {
$("input:last").focusout('慕课网', function(e){
$(this).val(e.data)
})
}
a();
jQuery基础(三)—事件篇
89984 学习 · 645 问题
相似问题