(1)alert函数:显示一个警告对话框,包括一个OK按钮。
   (2)confirm函数:显示一个确认对话框,包括OK、Cancel按钮。
   (3)escape函数:将字符转换成Unicode码。
   (4)eval函数:计算表达式的结果。
    eval("x=10;y=20;document.write(x*y)");
    document.write(ev...
                            
                            
                                分类:
编程语言   时间:
2015-01-29 15:54:46   
                                阅读次数:
190
                             
                         
                    
                        
                            
                            
                                escape() 方法:采用ISO Latin字符集对指定的字符串进行编码。所有的空格符、标点符号、特殊字符以及其他非ASCII字符都将被转化成%xx格式的字符编码(xx等于该字符在字符集表里面的编码的16进制数字)。比如,空格符对应的编码是%20。unescape方法与此相反。不会被此方法编码的字...
                            
                            
                                分类:
编程语言   时间:
2015-01-29 09:20:56   
                                阅读次数:
176
                             
                         
                    
                        
                            
                            
                                Page_up/Page_down与Home/End互换
CapsLock与Escape互换
                            
                            
                                分类:
系统相关   时间:
2015-01-28 09:36:46   
                                阅读次数:
156
                             
                         
                    
                        
                            
                            
                                DescriptionThere is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a...
                            
                            
                                分类:
其他好文   时间:
2015-01-27 21:43:01   
                                阅读次数:
170
                             
                         
                    
                        
                            
                            
                                一: 题意描述 二:题目分析 本题的大致意思是讲:在给定的一个大圆上挖去很多圆(这些圆有的在大圆里面,有的在大圆外面,有的与圆相加),凡是被圆占据的部分则不能通行。现在给定两个点,(lifeship和controlling room)如果两者能够到达的话表示能够Escape,否则就只有Die h.....
                            
                            
                                分类:
其他好文   时间:
2015-01-26 22:19:09   
                                阅读次数:
246
                             
                         
                    
                        
                            
                            
                                索引escape(@string); // 通过 URL-encoding 编码字符串e(@string); // 对字符串转义%(@string, values…); // 格式化字符串unit(@dimension, [@unit: ""]); // 移除或替换属性值的单位color(@stri...
                            
                            
                                分类:
其他好文   时间:
2015-01-24 18:36:52   
                                阅读次数:
326
                             
                         
                    
                        
                            
                            
                                什么是转义字符mysql的escape character指的是需要转义的特殊字符,这些字符出现在sql语句中,如果没有转移会导致sql语法报错或者有sql注入攻击的可能。主要有以下几种都需转义:\x00, \n, \r, \, ', " and \x1a. 比如' 就需要变成\'下面是sql测试:mysql> INSERT INTO nodes(name) VALUES ('select a.d...
                            
                            
                                分类:
数据库   时间:
2015-01-20 23:57:42   
                                阅读次数:
360
                             
                         
                    
                        
                            
                            
                                http://poj.org/problem?id=1087
Description
You are in charge of setting up the press room for the inaugural meeting of the United Nations Internet eXecutive (UNIX), which has an international ma...
                            
                            
                                分类:
其他好文   时间:
2015-01-20 22:19:47   
                                阅读次数:
198
                             
                         
                    
                        
                            
                            
                                概述:小开心下,又学到了点东西JS设置cookie//添加时间函数functionSetCookie(name,value){	varDays=30;	varexp=newDate();	exp.setTime(exp.getTime()+Days*24*60*60*1000);	document.cookie=name+"="+escape(value)+";path=/;expires="+exp.toGMTString();//又学的一个重点}..
                            
                            
                                分类:
编程语言   时间:
2015-01-20 18:22:04   
                                阅读次数:
494
                             
                         
                    
                        
                            
                            
                                /** * JavaScript escape/unescape 编码的 Java 实现 * author jackyz * keep this copyright info while using this method by free */public class Escape { pri...
                            
                            
                                分类:
编程语言   时间:
2015-01-20 17:34:19   
                                阅读次数:
305