亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

js setTimeout函數不執行?

js setTimeout函數不執行?

Git
紫衣仙女 2019-02-06 11:07:48
function docomment_form_hidden(doid, id) {var showid = 'docomment_form_'+doid+'_'+id;var hiddenid = 'docomment_form_show_'+doid+'_0';var focusid = 'do_message_'+doid+'_'+id;var append_parent = 'append_parent';function timeoutshow(){$(showid).style.display = 'none';$(hiddenid).style.display = '';}setTimeout("timeoutshow();",2000)$(append_parent).innerHTML = ''; }function docomment_form_hidden(doid, id) {var showid = 'docomment_form_'+doid+'_'+id;var hiddenid = 'docomment_form_show_'+doid+'_0';var focusid = 'do_message_'+doid+'_'+id;var append_parent = 'append_parent';if($(focusid).value==''){setTimeout("timeoutshow()",2000)}$(append_parent).innerHTML = ''; }function timeoutshow(){$(showid).style.display = 'none';$(hiddenid).style.display = '';}改成這樣了···還是不執行
查看完整描述

3 回答

?
ITMISS

TA貢獻1871條經驗 獲得超8個贊

function 套function settimeout 當然找不到timeoutshow
當然無法執行了,吧里面那個function timeoutshow拿出來就可以

查看完整回答
反對 回復 2019-03-14
  • 3 回答
  • 0 關注
  • 974 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號