ITPub博客

首页 > > > seajs模块化

seajs模块化

作者:doudourabbit 时间:2019-09-09 16:35:35 0 删除 编辑

我想点击按钮的时候移除掉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/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: C++的赋值运算符
请登录后发表评论 登录
全部评论

注册时间:2019-04-25

  • 博文量
    193
  • 访问量
    1437