摘要: var returned = window.confirm("请选择一个按钮单击!"); if(returned){ window.alert("您单击了“确定”按钮!"); }else{ window.alert("您单击了“取消”按钮!"); } 删除 阅读全文
posted @ 2019-09-24 11:44 雁字回头月满西楼 阅读(1500) 评论(0) 推荐(0)
摘要: 使用table标签方式将json导出xls文件 导出 阅读全文
posted @ 2019-09-16 17:44 雁字回头月满西楼 阅读(997) 评论(0) 推荐(0)
摘要: AJAX 回调函数执行完成后,刷新页面window.location.reload()执行无效; 实现方式 1.获取当前页面链接 2.执行完成后 通过replace重定向到当前页面 阅读全文
posted @ 2019-09-03 15:40 雁字回头月满西楼 阅读(1390) 评论(0) 推荐(0)
摘要: asar文件反向解压 asar e app.asar app app.asar 为源文件 官方文档中提到的基本格式为: --platform 和 --arch 表示可运行的系统 这里面有个要注意的坑:本机只能打包对应系统运行的electron软件,我自己使用mac开发,所以我是在windows虚拟机 阅读全文
posted @ 2019-07-24 15:40 雁字回头月满西楼 阅读(1780) 评论(0) 推荐(0)
摘要: 1 apiready = function() { 2 var winWidth = api.winWidth; 3 var winHeight = api.winHeight; 4 console.log(winHeight); 5 var canvasList = document.getElementById('leftjoystick'); 6... 阅读全文
posted @ 2019-02-28 18:55 雁字回头月满西楼 阅读(973) 评论(0) 推荐(0)
摘要: 每次调用结束后,都会将动画重置,这是重复调用的核心! 阅读全文
posted @ 2018-11-22 15:49 雁字回头月满西楼 阅读(4692) 评论(0) 推荐(0)
摘要: 1.setData设置成功后执行事件的方法 this.setData({ userInfo: res.userInfo, hasUserInfo: true }, function () { that.checkBindHD() }) 2.在初始的data变量中直接进行读取缓存操作存在赋值失败的情况 阅读全文
posted @ 2018-11-22 10:33 雁字回头月满西楼 阅读(1133) 评论(0) 推荐(0)
摘要: var pages = getCurrentPages();//获取页面栈 if (pages.length > 1) { //上一个页面实例对象 var prePage = pages[pages.length - 2]; //调用上一个页面的onShow方法 prePage.onShow() } 阅读全文
posted @ 2018-11-21 14:25 雁字回头月满西楼 阅读(13417) 评论(0) 推荐(0)
摘要: /*单行文本的溢出显示省略号*/ width: 200px; overflow:hidden; text-overflow:ellipsis; white-space: nowrap;/*加宽度width属来兼容部分浏览器*/ /*多行文本溢出显示省略号*/ width: 220px; height: 58px; overflow:hidden; text-overflow:ellips... 阅读全文
posted @ 2018-11-02 10:46 雁字回头月满西楼 阅读(182) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-04-07 16:34 雁字回头月满西楼 阅读(114) 评论(0) 推荐(0)