摘要: 阅读全文
posted @ 2020-03-28 23:39 chchchc 阅读(363) 评论(0) 推荐(0)
摘要: 问:sevalue是空的 p是有值的 所以应该取的p的值 为什么还是报错 因为sevalue[0]是undefined 直接报错了 这样写就可以:(sevalue[0]&&sevalue[0].StepName) || p 【往后面取值】 阅读全文
posted @ 2020-03-28 23:23 chchchc 阅读(340) 评论(0) 推荐(0)
摘要: var p = $("input[name='bui-deptselect-step']:checked").val(); 阅读全文
posted @ 2020-03-28 23:16 chchchc 阅读(489) 评论(0) 推荐(0)
摘要: html文件中这样: js中这样: 阅读全文
posted @ 2020-03-28 23:03 chchchc 阅读(442) 评论(0) 推荐(0)
摘要: 数组的合并:[].concat(); 对象的合并:$.extend(true,{},{}) 于将一个或多个对象的内容合并到目标对象 图中{data:XXXX}是因为是合并到对象的data值里面 阅读全文
posted @ 2020-03-28 22:42 chchchc 阅读(1204) 评论(0) 推荐(0)
摘要: 对于一串链接url,获取其中的url参数:示例url: http://www.caibaojian.com:80/fisker/post/0703/window.location.html?ver=1.0&id=6#imhere 1.window.location.href 整个url字符串(在浏览 阅读全文
posted @ 2020-01-07 16:34 chchchc 阅读(636) 评论(0) 推荐(0)
摘要: 用法: var attachments = res.attachments[0]; //拿到附件的一些参数 var download = function(attachments) { //定义的一个下载附件方法 if (attachments && !attachments.attachmentU 阅读全文
posted @ 2019-12-24 16:10 chchchc 阅读(1164) 评论(0) 推荐(0)
摘要: (function(window) { /** 下载文件 @method app.download @static @param option {object} @param option.url {string} 下载的地址 */ app.download = function(option) { 阅读全文
posted @ 2019-12-23 10:02 chchchc 阅读(2228) 评论(0) 推荐(0)
摘要: 如: $("#"+attachId).on('click', function() { params1 = []; params1.push(this.src+"&ran="+new Date().valueOf()); //用&符号连接起来 后面这串就是盖时间戳的写法 console.log('p 阅读全文
posted @ 2019-12-04 15:44 chchchc 阅读(383) 评论(0) 推荐(0)
摘要: 1.控制台输入 bui.currentPlatform 可查看工程项目基于什么平台 如:bingotouch 2.如果是 bingotouch , 在 index.js 或者其它配置的地方, 加上这句 bui.config.upload = { needNative:true } , 就会采用原生的 阅读全文
posted @ 2019-11-26 22:53 chchchc 阅读(591) 评论(0) 推荐(0)