<a></a>标签onclick时间调用脚本的方法,下载这样子写正确不?
<script type="text/javascript">
var Sels = function (url) {
var ids = "";
$("input[name='sel']:checked").each(function (index, obj) {
ids = ids + obj.id.split('_')[1] + ",";
});
if (ids == "") {
ShowSmileTip("请选择要操作的项!");
return;
}
url = url + "&ids=" + ids;
location.href = url;
}
</script>
<a href="javascript:void(0);" onclick="javascript:function(){Sels('Resend.aspx?action=batchsend&repage=<%=MF.Com.StrUtil.UrlEncode(MF.Com.StrUtil.CurrentRootUrlQuery) %>')}">
缥缈止盈
慕桂英546537