我有兩個按鈕的自定義溫泉對話框,並且這些按鈕的HTML代碼中有onclick代碼。我使用模板創建該對話框,後來當我試圖隱藏此對話框的方法是這樣 var dialog = document.getElementById("dialogSearchFriend");
dialog.hide();
我得到一個錯誤"hide() is not a function"。 我調試了這個,對話框變量似乎是
我更新react-onsenui從0.7.3到1.0.0之後。 我使用摩卡來測試我的web應用程序。發生這樣的錯誤: Error: Invalid state
at /Users/*****/node_modules/onsenui/js/onsenui.js:581:11
onsenui.js'的代碼是這樣的: throw new Error('Invalid state');
我想直接用溫泉用戶界面做一些事情 - 自動取消選中某些選中的開關。所以,我有很多開關,我想模仿單選按鈕的行爲(基本上是將所有其他開關設置爲未檢查)。 我使用的角度和我得到這個錯誤,當我嘗試從代碼做到這一點。 Uncaught TypeError: document.getElementsByTagName(...)[0].setChecked is not a function(…) 基本上我試圖