0

当我尝试使用$cookieStore. 有没有我遗漏的其他配置?

function fbLogin($cookieStore){

    $cookieStore.put("userid",'12345');
    validateUser(userid);
    alert(userid);
}
4

1 回答 1

0

You're not actually defining userId anywhere to JavaScript. You're setting a cookie whose value is userid=12345, but then calling validateUser with an unknown variable, userId which has the undefined value.

于 2012-03-09T08:42:31.290 回答