javascript 编程
文章平均质量分 76
kxzerg
努力
展开
-
笔记.javascript无法执行问题
看下面一段代码: function pro(){ alert('2222'); return false; } function pro(){ alert('2222');转载 2012-03-30 15:39:29 · 394 阅读 · 0 评论 -
javascript时间函数
//日期转换为字符串"yyyy-mm-dd hh:mm:ss"Date.prototype.toCommonCase=function(){ var xYear=this.getYear(); xYear=xYear+1900; var xMonth=this.getMonth()+1; if(xMonth<10){ xMonth="0"+xMonth; } var xDay=th转载 2012-03-30 15:41:17 · 367 阅读 · 0 评论 -
json form javascript
//将表单序列化为json对象 $.fn.serializeObject = function() { var o = {}; var a = this.serializeArray(); $.each(a, function() { if (o[this转载 2012-03-30 15:37:49 · 599 阅读 · 0 评论 -
javascript prototype
Javascript prototype:基本的用法把ClassA的一个实例赋值给ClassB ClassB就继承了ClassA的所有属性function ClassA(){ this.a='a';}function ClassB(){ this.b='b';}ClassB.prototype=new ClassA();var objB=转载 2012-03-31 14:33:15 · 510 阅读 · 0 评论 -
乱七八糟的一堆js html笔记
select c_app_no,c_feetyp_cde,n_fee_prop,n_fee from web_app_fee where c_app_no='002000104112011000002'1 002000104112011000002 S 0.100000 169.402 002000104112011原创 2012-03-31 11:26:21 · 443 阅读 · 0 评论 -
javascript计时器-1秒精度.
var c=0 var t //定义的两个变量 function timedCount() { document.getElementById('txt').value=c //获取要显示时间的文本框的值 c=c+1 //c++ 每次执行时 文本框的值要加1 t=setTimeout("timedCount()",1000) // 每隔1秒调用一转载 2012-03-31 14:07:03 · 795 阅读 · 0 评论 -
google map api v3 笔记01-叠加层
var shape = { coord: [1, 1, 1, 20, 18, 20, 18 , 1], type: 'poly' };marker = new google.maps.Marker({ map:map, draggable:true,//可拖拽 animation: google.maps.Animat转载 2012-03-19 23:36:30 · 921 阅读 · 0 评论