Jquery each ajax 賦值
阿新 • • 發佈:2017-10-17
async ntc set document attr etc class javascrip esp data: { "classid": myid },
async: false
}).responseText;
$(this).html(" ("+mytext+")");
});
});
</script>
<script type="text/javascript">
$(document).ready(function () {
$("#mylist li span").each(function () {
var myid = $(this).attr(‘classid‘);
var mytext = $.ajax({
type: "POST",
url: "GetCountClass.ashx",
async: false
}).responseText;
$(this).html(" ("+mytext+")");
});
});
</script>
Jquery each ajax 賦值