js文件中存cookie问题

document.cookie ="19990527="+guid()+";expires=10000000000";
使用以上语句存cookie,在html页面可以存,放到js文件中则不行,这是为什么?

你的js文件没引吧 = =