我有一个示例代码:
window.fbAsyncInit = function() {
FB.init({appId: appId, status: true, cookie: true, xfbml: true});
// Additional initialization code such as adding Event Listeners goes here
FB.getLoginStatus(function(response) {
if (response.status === 'connected') {
getFlag(1);
} else if (response.status === 'not_authorized') {
getFlag(2);
} else {
getFlag(3);
}
});
};
var f = function getFlag(flag){};
alert(f);
结果是 a function getFlag(flag) {}
,如果 = 1 正好,如何得到这个值