【发布时间】:2016-01-05 07:13:30
【问题描述】:
我正在使用 cordova 混合移动应用程序。在该应用程序中,我想在代码中实现共享首选项。我也收到了服务器的回复。 如何在我的应用程序中实现共享首选项。我通过 jquery 得到响应,我的文件扩展名是 .html
【问题讨论】:
-
您能否发布一些代码,您需要在共享首选项中存储哪些数据。
-
我需要将用户名和密码存储在共享首选项中。在这里,我必须使用 response.status==S 下的共享首选项: $.get(action, data, function(response) { if(response.status == 'S') { window.location.href= 'sample. html'; } else { $('#errorDiv').show(); $('#username').val(''); $('#password').val(''); }
标签: cordova-plugins hybrid-mobile-app cordova-5.0.0