[问题] 如何改变被require的js中变量内容

楼主: aMaa (aMa)   2014-08-20 14:52:36
请问大家一下,
我用nodejs index.js执行
index.js里require a.js, a.js内容有用到window.location,
index.js如下:
作者: Fantasywind (Fantasywind)   2014-08-21 03:12:00
rewire
作者: tomap41017 (绝梦)   2014-08-23 01:25:00
Take a look at jest??

Links booklink

Contact Us: admin [ a t ] ucptt.com