-2
我在控制檯中看到以下錯誤。我不知道我怎樣才能在ref.CreateUser未捕獲的SyntaxError:意外的令牌,位於firebase中的refCreateUser
未捕獲的SyntaxError提供電子郵件和密碼:意外的令牌,
這是功能
function so_passwd() {
var email = $("#so_email").val();
var password = $("#so_pass").val();
ref.createUser({
email,
password
}, function(error) {
if (error === null) {
console.log("User created successfully");
} else {
console.log("Error creating user:", error);
}
});
}
那麼,這是無效的JSON。 – Daedalus 2014-10-04 23:10:37