1. 程式人生 > >a標籤傳遞多個引數

a標籤傳遞多個引數

<span class="data-number">

      <a href="javascript:void(0)" onclick="supplementExpert('<iris:des3time code="${vo.disno}"></iris:des3time>','${vo.cname}')" <c:if test="${vo.pNum le 10}"> style="color:red"</c:if>>${vo.pNum}</a>

</span>

append後面就不能這樣寫,可以:

<a onclick=\"delScienceArea('"+disnoL+"');\"> 

eg:

$("#choosed_area_list").append("<div class='main-list__item' id='choosed_"+disnoL+"' style='padding: 0px 16px!important;'><div class='main-list__item_content'>"+disnoName+"</div><div class='main-list__item_actions'><a onclick=\"delScienceArea('"+disnoL+"');\">

<i class='icon_close mr4'></i></a></div><input type='hidden' id='choose_disno' value='"+disnoL+"' /></div>");