@H_502_0@<span style="background-color: #ccffcc">
如下所示:
<div class="jb51code">
<pre class="brush:js;">
var provinces = res.res;
var html = [];
var option_select='';
var tpl = '<option value="{1}" data-id="{1}" data-name="{0}">{0}';
html.push(option_select);
$.each(provinces,function (i,n) {
<span style="white-space:pre"> html.push(tpl.format(n.name,n.id));
});
//alert(html.join());
$('#class').html(html.join(''));