1,encodeURIComponent
encodeURIComponent() 函数可把字符串作为 URI 组件进行编码。如过url中包含=、+、/等,不能被正确的解析,需要使用encodeURIComponent编码。
示例:var demo = "AKAcoI/tLvan03/LAi+vJvmfsI34vQ7KpbT==";
使用encodeURIComponent(demo)转换后变成"AKAcoI%2FtLvan03%2FLAi%2BvJvmfsI34vQ7KpbT%3D%3D"可以变正确解析。
encodeURIComponent属于js编码工具,使用decodeURIComponent解码.
java中使用URLEncoder.encode(value,"UTF-8");编码,使用URLDecoder.decode(value,"UTF-8")解码。
2,从表中随机的取数据
SELECT * from tablename ORDER BY RAND()
3,生成带logo的二维码工具:zxing
4,centos安装宝塔命令
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh