-1
我想在我的手機代碼中加入本地存儲,我想要保存一組數據。手機本地存儲?
我的代碼的一部分記載:
<div data-role="collapsibleset">
<div data-role="collapsible">
<h3>LOGIN</h3>
<form id="login-form" data-ajax="false" method="post">
<label for="text-1">USERNAME:</label><input name="text-1" id="text-1" type="text" value="subin">
<label for="password">PASSWORD:</label><input name="password" id="password" type="password" value="passwordx">
<input type="button" data-theme="b" name="submit" id="submit" value="enter" data-iccon="plus">
</form>
</div>
現在我想捕捉的用戶名和密碼,並使用JSON.Stringify並用它來存儲數據。不過,我非常確定語法。