2
我使用火力地堡檢查存在「」但控制檯拋出了以下錯誤:
New Firebase failed: First argument must be a valid firebase URL and the path can't contain ".", "#", "$", "[", or "]".
以下是代碼:
new Firebase("https://123654789.firebaseio.com/123654/.info/connected").on('value', function(connectedSnap) {
console.log(connectedSnap.val());
if (connectedSnap.val() === true) {
alert('I am connected!');
} else {
/* we're disconnected! */
alert('not connected!');
}
});
'不能包含「」',你有'.info' ...所以....學習閱讀的錯誤? –