一、前言 讲这3个方法区别的文章太多了,但是大部分写的都很绕。本文试图从实践角度去讲这3个方法。 二、escape和它们不是同一类 简单来说,escape是对字符串(string)进行编码(而另外两种是对URL),作用是让它们在所有电脑上可读。编码之后的效果是%XX或者%uXXXX这种形式。其中 A ...
分类:
Web程序 时间:
2017-05-13 19:01:43
阅读次数:
223
全局函数 encodeURI()decodeURI()encodeURIComponent()decodeURIComponent()escape()unescape()eval() String()Number()parseInt()parseFloat() isNaN()isFinite() e ...
分类:
Web程序 时间:
2017-05-11 15:37:14
阅读次数:
275
编写shell脚本的时候。通过改变shell的显示颜色,不但可以改变使用shell终端的体验,并且更为有用的是,可以通过改变显示内容的颜色来区分正常输出。warning和error等不同关注级别的输出内容。 1、转义序列(Escape sequence) An escape sequence is ...
分类:
系统相关 时间:
2017-05-11 13:32:19
阅读次数:
252
function getUrlParam(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象 var r = window.location.search.substr(1).mat ...
分类:
其他好文 时间:
2017-05-10 18:47:25
阅读次数:
182
url的三个js编码函数http://www.haorooms.com/post/js_escape_encodeURIComponentLog4j配置详解之log4j.xmlhttp://zengxiantao.iteye.com/blog/1881706利用JConsole工具监控java程序内存和JVMhttp://www.cnblogs.com/luihengk/p/5446279.html
分类:
其他好文 时间:
2017-05-10 11:31:03
阅读次数:
170
JQGrid是一个在jquery基础上做的一个表格控件,以ajax的方式和服务器端通信。 JQGrid Demo 是一个在线的演示项目。在这里,可以知道jqgrid可以做什么事情。下面是转自其他人blog的一个学习资料,与其说是学习资料,说成查询帮助文档更加合适。 jqGrid学习之 安装 jqGr ...
报错:Uncaught SyntaxError: Unexpected token o in JSON at position 1 at JSON.parse (<anonymous>) at Function.m.parseJSON (jquery.js:8515) at Object.succe ...
分类:
Web程序 时间:
2017-05-06 00:50:01
阅读次数:
557
At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock the door ...
分类:
其他好文 时间:
2017-05-06 00:49:31
阅读次数:
324
先看一个例子:本地测试环境:php 5.4.45 + win <?php $command = 'dir '.$_POST['dir']; $escaped_command = escapeshellcmd($command); var_dump($escaped_command); file_pu ...
分类:
其他好文 时间:
2017-05-03 21:16:09
阅读次数:
248
A.Hot and Cold(水题) Carl, Caroline, Helen, and Han are four friends sharing a one-room workspace. The workspace has a single thermostat which they can ...
分类:
其他好文 时间:
2017-05-03 14:39:32
阅读次数:
179