方式一:

 1 //点击要素,修改URL
 2 $(document).on('click',"#modUrlYs" ,function (){
 3 //$("#modUrlYs").dblclick(function(){
 4 var selectVal = $('#modUrlYs option:selected').attr("selectId");//选中的值
 5         
 6 if(typeof(selectVal)=="undefined"){ 
 7     return;
 8 } 
 9         
10 //根据要素查找URL
11 $.ajax({
12     url:"/crwalTask/getUrlNameByYs",
13     type:"post",
14     data:{"ysid":selectVal},
15     success:function(data){
16     $(".u-popup-A5-revise-wrap #atModUrl").empty();
17     var str = "";
18     $.each(data,function(i,item){
19         str += "<option selectId='"+item.urlId+"'>"+item.originalUrl+"</option>"
20     });
21     $(".u-popup-A5-revise-wrap #atModUrl").append(str);
22     }
23     });
24 });
View Code

相关文章:

  • 2022-02-07
  • 2021-11-30
  • 2021-07-29
  • 2021-11-17
  • 2022-12-23
猜你喜欢
  • 2021-11-17
  • 2021-12-09
  • 2021-06-30
  • 2022-01-13
  • 2021-12-21
  • 2021-11-20
相关资源
相似解决方案