![](/img/trans.png)
[英]How to retrieve key value of child node from firebase database using firebase cloud function?
[英]How to retrieve value from Web SQL Database by using function?
我有一個帶有按鈕的文本框。 如何通過使用onclick函數從JS文件中的Web SQL數據庫檢索值並顯示在文本框中?
您可以為此使用Ajax
:
XmlHttp.onreadystatechange = HandleUserNameResult;
XmlHttp.open("GET", requestUrl, true);
XmlHttp.send(null);
function HandleUserNameResult() {
var responseText = XmlHttp.responseText; //Here you will get the result;
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.