随笔分类 -  HTML5

摘要:后台接口 //pathContent为FileReader的onloadend事件中返回的target.result public string getUrl(string pathContent) { int length = pathContent.Length; string comname 阅读全文
posted @ 2019-12-19 16:10 艺洁 阅读(298) 评论(0) 推荐(0)
摘要:后台接口 //pathContent为网络图像文件转Base64生成的DataURL public string getUrl(string pathContent) { int length = pathContent.Length; string comname = ""; string bas 阅读全文
posted @ 2019-12-19 16:08 艺洁 阅读(331) 评论(0) 推荐(0)
摘要:document.getElementById('save').addEventListener('tap', function(e) { if (!navigator.onLine) { mui.alert("请确认连接网络后再提交"); return; } plus.nativeUI.showW 阅读全文
posted @ 2019-09-27 17:25 艺洁 阅读(189) 评论(0) 推荐(0)
摘要:function GetConfirmItem() { var data = []; db.transaction(function(tx) { //查询所有整改项 tx.executeSql( 'select * from ry_confirm_item where confirm_id =? ' 阅读全文
posted @ 2019-09-27 17:25 艺洁 阅读(324) 评论(0) 推荐(0)
摘要://新建数据库 // databasename:数据库名;// version:数据库版本号,可不填;// description:数据库描述;// size:给数据库分配的空间大小; var db = openDatabase('digital_inspection', '1.0.0', '离线数 阅读全文
posted @ 2019-09-27 17:23 艺洁 阅读(361) 评论(0) 推荐(0)