您现在的位置是:首页 > 使用教程使用教程

JS模拟点击在新窗口打开页面得代码及解决办法是什么?

【使用教程】

JS模拟点击并且在新窗口打开得解决方法
$(document).ready(function(){
  $(".showask").click(function(){
   var url=$(this).attr("url");
   window.open(url,"_blank");
  });
});

Tags: