1 //先用同步請求查詢出資料 2 learun.httpAsyncGet(top.$.rootUrl + '/LR_Performance/PA_Plan/GetList', function (resData) { 3 $('#PlanName').lrselect({ 4 url: '', 5 value: 'PlanID', 6 text: 'PlanName', 7 title: 'PlanName', 8 placeholder: learun.language.getSyn("請選擇方案"), 9 allowSearch: true, 10 data: resData.data 11 //給下拉框賦值請求資料的第一的value 12 }).lrselectSet(resData.data[0].PlanID); 13 }); 14