123456789101112131415161718192021222324252627282930313233343536 |
- mui.ready(function() {
- mui.plusReady(function(){
- var userid = plus.storage.getItem('userid');
- var ws=plus.webview.currentWebview();
- var str = JSON.stringify(ws);
- document.getElementsByClassName("borderarea")[0].innerText=ws.descp;
- document.getElementsByClassName("topsave")[0].addEventListener("tap",function(){
- mui.ajax(baseUrl + '/ajax/professor/descp', {
- data:{
- "id": userid,
- "descp":document.getElementsByClassName("borderarea")[0].innerText
- },
- dataType: 'json',
- async: false,
- type: 'POST',
- timeout: 10000,
- success: function(data) {
- console.log(data.success);
- if(data.success) {
- ws.close();
- var web=plus.webview.getWebviewById("html/proinforupdate.html");
- mui.fire(web,"newId");
- }
- },
- error: function() {
- plus.nativeUI.toast("服务器链接超时", toastStyle);
- return;
- }
- });
- });
- });
- })
|