<a onclick="js方法()"></a>
<a></a>标签onclick时间调用脚本的方法,下载这样子写正确不?<scripttype="text/javascript">varSels=function(ur...
<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) %>')}"> 展开
<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) %>')}"> 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询