上一页 1 2 3 4 5 6 7 ··· 10 下一页
摘要: 1. rank()、row_number()方法的使用: 2.case when then .. else .. end的使用,该语法还可以在查询字段时对一些条件进行判断来是否给值。例当分为0时不进行排名。 3.存储过程实现可选参数:可以先给参数赋予一个默认的值,然后在查询语句的where条件中写该 阅读全文
posted @ 2017-11-15 16:04 halo-漾 阅读(133) 评论(0) 推荐(0) 编辑
摘要: function wrap(object,method,wrapper){ //object:包装方法所属对象 method:方法名 wrapper:替换函数 var fn = object[method]; return object[method] = function(){ return wrapper.apply(this,[fn.bind(t... 阅读全文
posted @ 2017-11-11 17:56 halo-漾 阅读(178) 评论(0) 推荐(0) 编辑
摘要: var elem = document.getElementById("test"); elem.addEventListener("click",aa,false); //click 代表的是事件, aa代表事件触发执行的函数 function aa(){ alert("aa"); } 阅读全文
posted @ 2017-11-08 23:17 halo-漾 阅读(5297) 评论(0) 推荐(0) 编辑
摘要: var button = { clicked:false, click: function(){ this.clicked = true; assert(button.clicked,"the button has been clicked"); } }; button["click"](); //... 阅读全文
posted @ 2017-11-08 23:14 halo-漾 阅读(248) 评论(0) 推荐(0) 编辑
摘要: function bind(context,name){ return function(){ return context[name].apply(context,arguments); } } 阅读全文
posted @ 2017-11-08 23:13 halo-漾 阅读(125) 评论(0) 推荐(0) 编辑
摘要: function judge(){ var host = window.location.host; // ip+host var pro = "${pageContext.request.contextPath}"; //工程名 var datas = $("form").serialize(); var url = "http://" + host + pro + "/adm... 阅读全文
posted @ 2017-10-19 11:33 halo-漾 阅读(175) 评论(0) 推荐(0) 编辑
摘要: function days(){ startDate = new Date($("#startDate").val()); endDate= new Date($("#endDate").val()); var dates= startDate.getTime() - endDate.getTime(); var days= parseFloat(days / (100... 阅读全文
posted @ 2017-10-18 11:27 halo-漾 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 1.将JSON格式数据转化为wex5data数据组件中的数据,且数据列数不必一 一对应,但转化的列数据的列名与数据表字段相同。 阅读全文
posted @ 2017-10-17 16:14 halo-漾 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 1.wex5首页模板实现了页面调度框架功能,来实现调度到所定义的页面。和windowdialog有所不同: 1)多数情况下使用页面调度这种方法。 2)页面调度框架页面没有返回值,windowdialog可以实现数据返回。 2.运用首页模板,自动生成了下面代码来映射不同的页面(w文件)。 通过事件来页 阅读全文
posted @ 2017-10-17 15:04 halo-漾 阅读(753) 评论(0) 推荐(0) 编辑
摘要: 1.activity的跳转:通过在页面添加一个windowdialog对象,在src属性绑定打开的页面。通过windowdialog对象的open()方法执行打开操作。跳转到的子页面可以通过this.owner()来获取主页面的windowdialog对象,获取到对象后可以通过对象的send(dat 阅读全文
posted @ 2017-10-17 11:01 halo-漾 阅读(600) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 10 下一页