我想点击按钮的时候移除掉seajs的引用,该怎么做????
varlobbydata =null;
var$firstHash = window.location.hash.substring(1) || '';
if($firstHash == $(".indexPage").get(0).dataset.hash) {lobbydata = require("lobby.js").lobbyPage();
//alert(require("lobby.js").lobbyPage())是undefined;
}
$(".page2").click(function(){//想在点击的时候把lobbydata的值改为null,可是没有效果上面这个lobbydata = require("lobby.js").lobbyPage();还可以执行 });
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/4809/viewspace-3154289/ ,如需转载,请注明出处,否则将追究法律责任。