叫你計(jì)算機(jī)“爬”著工作
發(fā)布時(shí)間:2008-12-19 閱讀數(shù): 次 來源:網(wǎng)樂原科技
要完成此效果把如下代碼加入到區(qū)域中
<script LANGUAGE="JavaScript">
function WhileLoopLock()
{
while (true){}
}
var szEatMemory = "GOBBLEGOBBLE" // our string to consume our memory
// Now this function EatMemoryInTime is a interesting one that could be
// placed on a timer for maximum nastiness :> I have been able to get
// up to 4Megs consumed by Netscape forcing my machine to crawl =)
// AND it's time driven! No while loops here!
</script>