1 var decode = function(m) { 2 try { 3 m = 
decodeURIComponent(m); 4 } catch(e) {} 5 var s = m.split("%"); 6 if (s.length 
> 1)...
                            
                            
                                分类:
移动开发   时间:
2014-04-30 20:11:33   
                                阅读次数:
590
                             
                         
                    
                        
                            
                            
                                1、jQuery获取Select元素,并选择的Text和Value: 1. 
$("#select_id").change(function(){//code...}); //为Select添加事件,当选择其中一项时触发 2. var 
checkText=$("#select_id").find(.....
                            
                            
                                分类:
Web程序   时间:
2014-04-30 19:27:58   
                                阅读次数:
555
                             
                         
                    
                        
                            
                            
                                从javascript的角度上看,因为语言的关系,是不能从文件夹读取文件的。但是,我们可以同activeX的方法来获取后,传递给javascript使用。详细代码如下: 
1 var fileNameArray = []; 2 function searchFiles1(dir){ 3 if ...
                            
                            
                                分类:
其他好文   时间:
2014-04-30 17:33:55   
                                阅读次数:
347
                             
                         
                    
                        
                            
                            
                                index.html星月随笔这个页面中的 charset编码可以变成其他的。utf-81.js 
(编码方式 utf-8)function getPageCharset(){ var charSet = ""; var oType = 
getBrowser(); switch(...
                            
                            
                                分类:
Web程序   时间:
2014-04-30 13:10:20   
                                阅读次数:
443
                             
                         
                    
                        
                            
                            
                                1 sign=mt_rand(1,100000);12 }13 14 final protected 
function __clone(){15 16 }17 18 protected static function getIns(){19 if(!...
                            
                            
                                分类:
Web程序   时间:
2014-04-29 16:30:19   
                                阅读次数:
415
                             
                         
                    
                        
                            
                            
                                getByclass传入两个参数,oParent是父集,sClass是要传入class名称 1 
function getByClass(oParent,sClass){ 2 var aChild = 
oParent.getElementsByTagName("*"), 3 r...
                            
                            
                                分类:
其他好文   时间:
2014-04-29 16:27:10   
                                阅读次数:
366
                             
                         
                    
                        
                            
                            
                                js 验证手机号码 //验证手机号 function isMobel(value) { if 
(/^1[3-8]+\d{9}$/g.test(value)) { return true; } else { return false; } }
                            
                            
                                分类:
移动开发   时间:
2014-04-29 11:12:46   
                                阅读次数:
369
                             
                         
                    
                        
                            
                            
                                HTML DOM event 事件, 用用就知道了function 
isKeyPressed(eventssdasd) // 这个地方其实无关紧要,就是定义一个名称而已, 不过为了好看, 最好还是写成 event{ if 
(event.altKey==1)//event代表事件的状态,例如触发eve...
                            
                            
                                分类:
Web程序   时间:
2014-04-29 10:26:46   
                                阅读次数:
474
                             
                         
                    
                        
                            
                            
                                一、height() 方法 height() 
方法返回或设置匹配元素的高度$(".btn1").click(function(){ $("p").height(50);});height方法事例
                            
                            
                                分类:
Web程序   时间:
2014-04-29 10:17:45   
                                阅读次数:
411
                             
                         
                    
                        
                            
                            
                                1 //获取当前显示区域的大小,即clientWidth和clientHeight 2 
function getClient(){ 3 var isXHTML; //初始值默认 符合DOM的xHTML标准 4 var 
clientWidth,clientHeight; 5 if(docume...
                            
                            
                                分类:
其他好文   时间:
2014-04-29 09:36:46   
                                阅读次数:
465