上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 46 下一页
摘要: var getData = function () { var data; $.ajax({ url: '/getMATTypeList', type: 'get', async: false, success: function (result) { data = result; //数组头部添加 阅读全文
posted @ 2021-06-09 10:30 三瑞 阅读(263) 评论(0) 推荐(0)
摘要: index.js /** * 使用模板创建原生应用菜单 * 1、应用菜单(窗口菜单) * Window、Linux和Mac OS X * 2、上下文菜单 * * 1、模板 * 2、代码 * electron-packager * npm install electron-packager -g * 阅读全文
posted @ 2021-06-06 10:56 三瑞 阅读(128) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2021-06-05 09:41 三瑞 阅读(0) 评论(0) 推荐(0)
摘要: 11、在窗口中嵌入其他页面(webview组件)未成功 阅读全文
posted @ 2021-06-01 15:14 三瑞 阅读(67) 评论(0) 推荐(0)
摘要: 使用HTML5 API创建子窗口,控制窗口,窗口之间的交互,从子窗口返回数据,页面来源,使用eval方法向子窗口传递数据 index.js /** * 使用HTML5 API创建子窗口 * window.open方法 * window.open(url[,title][,attributes]) * 阅读全文
posted @ 2021-05-30 21:14 三瑞 阅读(473) 评论(0) 推荐(0)
摘要: 使用 X-Frame-Options 有三个可选的值: DENY:浏览器拒绝当前页面加载任何Frame页面SAMEORIGIN:frame页面的地址只能为同源域名下的页面ALLOW-FROM:origin为允许frame加载的页面地址 <?xml version="1.0" encoding="UT 阅读全文
posted @ 2021-05-25 20:29 三瑞 阅读(6828) 评论(0) 推荐(0)
摘要: index.js /** * 消息对话框:显示简单的消息对话框 * titile 和 message * showMessageBox(options) * * 设置消息对话框的图标 * icon * * 设置消息对话框类型 * 1、默认对话框:none * 2、信息对话模型:info * 3、错误 阅读全文
posted @ 2021-05-24 21:57 三瑞 阅读(239) 评论(0) 推荐(0)
摘要: index.js /** * 打开对话框:最简单的打开对话框 * * Dialog.showOpenDialog([browserWindow,]options[,callback]) * browserWindow参数允许对话框将自身附加到父窗口,作为父窗口的模态对话框。 * callback:返 阅读全文
posted @ 2021-05-23 22:33 三瑞 阅读(307) 评论(1) 推荐(1)
摘要: git rm 10编码/Src/xxx/bin/Debug/xxx.pdberror: the following file has local modifications:10编码/Src/xxx/bin/Debug/xxx.pdb(use --cached to keep the file, o 阅读全文
posted @ 2021-05-23 13:35 三瑞 阅读(177) 评论(0) 推荐(0)
摘要: index.js /** * 优雅地加载页面 * show:false,创建一个隐蔽的窗口 * win.on("ready-to-show",()=>{ win.show(); });//加载完才显示 */ /** * 父子窗口(Mac OS X和Windows有一定差异) * 1、子窗口总是在父窗 阅读全文
posted @ 2021-05-22 19:31 三瑞 阅读(1631) 评论(0) 推荐(0)
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 46 下一页