随笔分类 -  Javascript

摘要:var jQueryObject = $("#demoInput"); //取jQuery对象,实际上它是一个数组,只不过里面只有一个元素,因为这里选择器是idvar domObject = jQueryObject[0]; //从jQuery对象中得到原生的DOM对象alert(domObject... 阅读全文
posted @ 2016-01-06 14:51 雪卜 阅读(147) 评论(0) 推荐(0)
摘要:response.getWriter().print(reval > 0 ? true : false);//===========================Object[] str = new Object[2];str[0] = validateId;// 转出插件需要的str[1] = ... 阅读全文
posted @ 2015-12-22 16:23 雪卜 阅读(484) 评论(0) 推荐(0)
摘要:jQuery.ajax({ url: dataURL, success: function(results) { var parsedJson = jQuery.parseJSON(results); alert(parsedJson.name); } }); $.ajax({ type: ... 阅读全文
posted @ 2015-11-30 11:38 雪卜 阅读(244) 评论(0) 推荐(0)
摘要:$(document).ready(function(){ $(":checkbox:eq(0)").change(function(){ if ($(this).is(":checked")) { $(":checkbox:gt(0)").attr("checked",... 阅读全文
posted @ 2015-11-27 13:42 雪卜 阅读(788) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-11-27 11:52 雪卜 阅读(468) 评论(0) 推荐(0)
摘要:echarts图形插件使用 阅读全文
posted @ 2015-11-05 11:26 雪卜 阅读(1114) 评论(0) 推荐(0)
摘要://常量定义public class Constant { public static Integer PM_YEAR_NO = 5;}//actionpublic class ZhiBiaoPmAction extends BaseAction { private static final lon... 阅读全文
posted @ 2015-11-05 11:11 雪卜 阅读(6717) 评论(0) 推荐(0)
摘要:基于highchart修改而成的风力风向图1.替换highchart.js drawpoints方法,替换内容如下:drawPoints: function() { var a, b = this.points, c = this.chart, ... 阅读全文
posted @ 2015-07-13 11:00 雪卜 阅读(658) 评论(0) 推荐(0)
摘要:引入相关文件:使用实例:邮箱验证:日期验证:数字验证:URL验证:必填验证:数字字母验证:自定义验证:function checkHELLO(){ alert('Hello World!'); }AJAX验证:"ajaxUserCall": { "url": "ajaxValidateF... 阅读全文
posted @ 2015-07-13 10:34 雪卜 阅读(284) 评论(0) 推荐(0)
摘要:JSP代码片段Insert title here action处理如下public void getNodeData() { List> nodedata = service.getNodes(this.getId()); List> list = new ... 阅读全文
posted @ 2015-07-13 10:27 雪卜 阅读(238) 评论(0) 推荐(0)
摘要://行合并 function _w_table_rowspan(col){ _w_table_firsttd = ""; _w_table_currenttd = ""; _w_table_SpanNum = 0; ... 阅读全文
posted @ 2015-07-10 16:27 雪卜 阅读(800) 评论(0) 推荐(0)
摘要:function view(type) { var dmt,bar; indexOfExpend(); if (type == 1) { dmt = $(document); bar = $(parent.document); } else { ... 阅读全文
posted @ 2015-07-10 16:22 雪卜 阅读(247) 评论(0) 推荐(0)
摘要:window.onload = function(){ try{ if(test && typeof(test) == "function"){ test(); } }catch(e){ alert("方法不存在"); }}function test(){ alert("我是test()... 阅读全文
posted @ 2015-03-05 09:51 雪卜 阅读(4050) 评论(0) 推荐(0)