摘自:https://www.cnblogs.com/whh412/p/5627088.html 1. JSON.parse(jsonString): 在一个字符串中解析出JSON对象 1 2 3 var str = '[{"href":"baidu.com","text":"test","orgI ...
分类:
Web程序 时间:
2019-02-16 11:59:19
阅读次数:
228
1 """ 2 This script illustrate the usage of escape symbol %%. In general, it is used in mutil-formatted string. when a string is 3 formatted , %% can ... ...
分类:
其他好文 时间:
2019-02-07 15:05:41
阅读次数:
196
原文 一、现象 使用xshell连接远程主机的时候一直卡在To escape to local shell, press 'Ctrl+Alt+]'.,要等很久才能连上,或者直接就连不上 二、解决方法 三、原理 UseDNS选项打开状态下,当客户端试图登录SSH服务器时,服务器端先根据客户端的IP地址 ...
分类:
系统相关 时间:
2019-01-28 21:16:48
阅读次数:
594
# 输出json文件中文处理 ```php $value) { if ($value == '{') { $json = preg_replace('/\{(?!'.$eol.')/', "{".$eol.str_repeat("\t", ++$tab), $json, 1); }elseif ($... ...
分类:
Web程序 时间:
2019-01-27 21:57:58
阅读次数:
196
在SQL Server中,能使用通配符的只有2个:LIKE、PATINDEX。本文记录下LIKE、PATINDEX的用法,以及通配符的使用和转义。 ...
分类:
数据库 时间:
2019-01-27 16:32:45
阅读次数:
211
前言 pytest-html报告中当用到参数化时候,获取用例的nodeid里面有中文时候,会显示[\u6350\u52a9\u6211\u4eec]这种编码(再次声明,这个不叫乱码,这是unicode编码)关于python2和python3里面Unicode编码转化可以参考之前写的一篇【python ...
分类:
Web程序 时间:
2019-01-26 17:12:39
阅读次数:
383
Table of Contents 1. "PS1格式" 1. "基本格式" 2. "其它可能的格式" 2. "PS1配色方案" 3. "配置文件" bash的命令提示符和终端外观由环境变量PS1定义 PS1格式 基本格式 1. \u 显示当前用户名 2. \h 取第一个dot(.)之前的主机名 3 ...
分类:
其他好文 时间:
2019-01-23 19:34:29
阅读次数:
211
escape、encodeURI 和encodeURIComponent 的区别 escape(), encodeURI()和encodeURIComponent()是在Javascript中用于编码字符串的三个常用的方法,而他们之间的异同却困扰了很多的Javascript初学者,今天我就在这里对这 ...
分类:
Web程序 时间:
2019-01-23 10:33:01
阅读次数:
204
echo json_encode("中文", JSON_UNESCAPED_UNICODE); //"中文" ...
分类:
Web程序 时间:
2019-01-21 19:21:22
阅读次数:
156
title: asp突破php的安全模式 一直惦记着无心师傅之前发的一个没有getshell的非法网站。终于放寒假了,小菜鸡也想试一试。 https://www.secquan.org/Discuss/1068622 首先直接使用工具验证漏洞是否存在: 工具报出存在漏洞,接下来直接使用工具getsh ...
分类:
Web程序 时间:
2019-01-20 00:52:15
阅读次数:
204