标签:each doc this attr tco span jquer count response
<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",
data: { "classid": myid },
async: false
}).responseText;
$(this).html(" ("+mytext+")");
});
});
</script>
标签:each doc this attr tco span jquer count response
原文地址:http://www.cnblogs.com/future/p/7679924.html