<script type="text/javascript">
$(document).ready(function() {
$("#login").click(function(){
$.XYTipsWindow({
___title:"登录",
___content:"iframe:login.html",
___width:"460",
___height:"150",
___showbg:true,
___drag:"___boxTitle"
});
});
$("#reg").click(function(){
$.XYTipsWindow({
___title:"注册",
___content:"iframe:reg.html",
___width:"460",
___height:"450",
___showbg:true,
___drag:"___boxTitle"
});
});
})
</script>

jQuery怎么改写成JavaScript代码
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
2条回答 默认 最新
- 你好!机器人 2021-12-26 15:12关注
<a id="login" href="javascript:void(0);" onclick="goLogin">login</a> function goLogin(){ $.XYTipsWindow({ ___title:"登录", ___content:"iframe:login.html", ___width:"460", ___height:"150", ___showbg:true, ___drag:"___boxTitle" }); }
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决评论 打赏 举报无用 1