From 0249118ac3d52cbab084bc2b5bb2e5eeafc96994 Mon Sep 17 00:00:00 2001 From: Aragon Date: Tue, 2 Jun 2020 10:40:10 +0800 Subject: [PATCH] =?UTF-8?q?about=E6=B7=BB=E5=8A=A0=E6=AD=A3=E5=88=99?= =?UTF-8?q?=E5=92=8C=E5=AD=97=E7=AC=A6=E4=B8=B2=E6=9B=BF=E6=8D=A2=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- about.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/about.md b/about.md index 4599085..34dcc2d 100644 --- a/about.md +++ b/about.md @@ -4,3 +4,5 @@ api|地址|参数|参数是否必须|说明|用例 时间戳|http://localhost/util/timestamp|ts
|否|默认返回当前时间戳和时间
如果参数带时间戳,返回所对应北京时间|http://localhost/util/timestamp
http://localhost/util/timestamp?ts=1586921249 Unicode转中文|http://localhost/util/unicode|content|是|要转码的内容|http://localhost/util/unicode?content=今日签到:1\u5929\u5ef6\u4fdd Url转中文|http://localhost/util/urldecode|content|是|要转码的内容|http://localhost/util/urldecode?content=签到成功!每日签到获得%2C +正则表达式|http://localhost/util/regex|data,p|是|data:原始数据
p:正则表达式|http://localhost/util/regex?data=%7b"code"%3a0%2c"msg"%3a"成功"%2c"data"%3a%7b"users"%3a%5b%7b"name"%3a"张三"%2c"gender"%3a"male"%2c"age"%3a12%7d%2c%7b"name"%3a"李四"%2c"gender"%3a"female"%2c"age"%3a15%7d%2c%7b"name"%3a"王五"%2c"gender"%3a"male"%2c"age"%3a22%7d%2c%7b"name"%3a"赵六"%2c"gender"%3a"male"%2c"age"%3a24%7d%5d%2c"goods"%3a%5b%7b"name"%3a"apple"%2c"price"%3a15%2c"num"%3a200%7d%2c%7b"name"%3a"pear"%2c"price"%3a18%2c"num"%3a100%7d%2c%7b"name"%3a"banana"%2c"price"%3a16%2c"num"%3a210%7d%5d%7d%7d&p=name"%3a"(.%2b%3f)" +字符串替换|http://localhost/util/string/replace|p,s,t|是|p:正则表达式
s:要替换的字符串
t:要替换的内容|http://localhost/util/string/replace?p=%E4%BA%BA&t=%E5%AD%97%E7%AC%A6%E4%B8%B2&s={%22text%22:%22%E6%88%91%E6%98%AF%E4%BA%BA%22} \ No newline at end of file