$(document).ready(function(){
console.log(JSON.parse($.cookie("softforge.org")));
});
$(document).ready(function(){
$("#Logon").click(function(){
var name=$("#username").val();
console.log(name);
var pass=$("#password").val();
console.log(pass);
$.post("user/getuser",{username:name,password:pass},function(data) {window.data=data;console.log(data);$.cookie("softforge.org",JSON.stringify(window.data));window.location.href="dashboard";},"json");
});
它适用于chrome并且不适用于firefox。上面的代码有什么问题。