第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

有沒有童鞋遇到過同樣的問題:jsp頁(yè)面下拉框不能加載數(shù)據(jù)

有沒有童鞋遇到過同樣的問題:jsp頁(yè)面下拉框不能加載數(shù)據(jù)

jsp頁(yè)面里的下拉框加載不出下拉框代碼:信息來源:-請(qǐng)選擇-script代碼:$(function(){//頁(yè)面加載函數(shù)就會(huì)執(zhí)行,頁(yè)面加載函數(shù)就會(huì)執(zhí)行查詢字典//加載企業(yè)性質(zhì)$.post("${pageContext.request.contextPath}/baseDict_findByTypeCode.action",{"dict_type_code":"007"},function(data){//遍歷JSON數(shù)據(jù)$(date).each(function(i,n){$("#enterpriseNature").append(""+n.dict_item_name+"");});},"json");});控制臺(tái)打印顯示能取到值:BaseDictAction中的findByTypeCode方法執(zhí)行了....Hibernate:selectbasedict0_.dict_idasdict_id1_0_,basedict0_.dict_type_codeasdict_typ2_0_,basedict0_.dict_type_nameasdict_typ3_0_,basedict0_.dict_item_nameasdict_ite4_0_,basedict0_.dict_item_codeasdict_ite5_0_,basedict0_.dict_sortasdict_sor6_0_,basedict0_.dict_enableasdict_ena7_0_,basedict0_.dict_memoasdict_mem8_0_frombase_dictbasedict0_wherebasedict0_.dict_type_code=?[{"dict_id":"16","dict_item_code":"","dict_item_name":"私營(yíng)","dict_type_code":"007","dict_type_name":"企業(yè)性質(zhì)"},{"dict_id":"17","dict_item_code":"","dict_item_name":"國(guó)企","dict_type_code":"007","dict_type_name":"企業(yè)性質(zhì)"}]小白跪求大神---
查看完整描述

2 回答

?
幕布斯7119047

TA貢獻(xiàn)1794條經(jīng)驗(yàn) 獲得超8個(gè)贊

你先看看$("#enterpriseNature")標(biāo)簽是否加載出來,如果后臺(tái)能出來數(shù)據(jù)前臺(tái)js也沒有報(bào)錯(cuò)的話,可能是初始化調(diào)用的時(shí)候,該標(biāo)簽還沒初始化完,你把js代碼放在最后面試試
                            
查看完整回答
反對(duì) 回復(fù) 2019-06-21
?
MYYA

TA貢獻(xiàn)1868條經(jīng)驗(yàn) 獲得超4個(gè)贊

$(function(){
//頁(yè)面加載函數(shù)就會(huì)執(zhí)行,頁(yè)面加載函數(shù)就會(huì)執(zhí)行查詢字典
//加載企業(yè)性質(zhì)
$.post("${pageContext.request.contextPath}/baseDict_findByTypeCode.action",{"dict_type_code":"007"},function(data){
debugger
//遍歷JSON數(shù)據(jù)
$(date).each(function(i,n){
$("#enterpriseNature").append(""+n.dict_item_name+"");
});
},"json");
});
這邊你看看你的data是啥,傳送的是什么東西。你這邊$.each的方法用的好像也不對(duì)哦$.each(arr1,function(i,val){})
                            
查看完整回答
反對(duì) 回復(fù) 2019-06-21
  • 2 回答
  • 0 關(guān)注
  • 358 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)