function createLoading(cfg){
...
}
setTimeout(function(){
createLoading({
msg:'processed now...',
isMask:false,
msgTop:buttonPos.top,
msgLeft:buttonPos.left
})
},200);
本文介绍了一个用于创建加载动画的JavaScript函数createLoading。该函数接受配置参数,包括显示消息、是否使用遮罩以及消息的位置。通过setTimeout延迟调用此函数,可以在指定时间后显示加载提示。
function createLoading(cfg){
...
}
setTimeout(function(){
createLoading({
msg:'processed now...',
isMask:false,
msgTop:buttonPos.top,
msgLeft:buttonPos.left
})
},200);
444
401
448
341

被折叠的 条评论
为什么被折叠?