标签:space 插入 html list 后台 ace value 元素 form
1 <div class="col-sm-6"> 2 <select class="form-control" id="creategood_store"> 3 </select> 4 </div>
1 var parent = document.getElementById("creategood_store"); 2 var node = document.createElement("option"); 3 node.setAttribute("value", data.result[i].id); 4 node.innerHTML = data.result[i].name; 5 parent.appendChild(node);
1 $(document).ready(function () { 2 $.ajax({ 3 url: "/gankadc/home/newlydata/recordlist", 4 type: "GET", 5 dataType: "json", 6 success: function (data) { 7 ... 8 } 9 10 }) 11 }); 12
标签:space 插入 html list 后台 ace value 元素 form
原文地址:https://www.cnblogs.com/Benjious/p/9876919.html