2021年3月8日
摘要: 有字符串$str = 'a=123&b=456&c=789&d=000';解析成数组 parse_str($str, $arr);var_dump($arr); 输出结果 array(4) { ["a"]=> string(3) "123" ["b"]=> string(3) "456" ["c"] 阅读全文
posted @ 2021-03-08 11:35 丢_泡_泡 阅读(284) 评论(0) 推荐(0) 编辑
  2019年5月14日
摘要: var arr = ['a', 'b', 'c', 'd']; arr.splice($.inArray('a', arr), 1); console.log(arr); 结果:['b', 'c', 'd'] 阅读全文
posted @ 2019-05-14 16:08 丢_泡_泡 阅读(574) 评论(0) 推荐(0) 编辑
  2019年5月9日
摘要: sed -i 's/str1/str2/g' filename str1: 被替换的字符串 str2: 替换成的字符串 阅读全文
posted @ 2019-05-09 11:03 丢_泡_泡 阅读(4376) 评论(0) 推荐(0) 编辑
  2018年12月21日
摘要: $arr1 = ['a' => '111', 'b' => '222', 'c' => '333'];$arr2 = ['d' => '444', 'e' => '555', 'f' => '666'];$arr = $arr1 + $arr2;输出结果: array(6) { ["a"] => s 阅读全文
posted @ 2018-12-21 16:28 丢_泡_泡 阅读(364) 评论(0) 推荐(0) 编辑
  2018年12月18日
摘要: 1. 在nginx配置文件: location ~ \.php$ { root /home/wwwroot/edu_project; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param PATH_TRANSLATED 阅读全文
posted @ 2018-12-18 14:12 丢_泡_泡 阅读(199) 评论(0) 推荐(0) 编辑
  2018年11月17日
摘要: $str = '<span>66666</span>'; $number = strip_tags($str); echo $number; 阅读全文
posted @ 2018-11-17 10:38 丢_泡_泡 阅读(103) 评论(0) 推荐(0) 编辑
  2018年10月29日
摘要: CentOS 安装nginx yum install nginx 时报错:No package nginx available. 方法: 先安装epel; yum install epel-release 之后安装nginx; 阅读全文
posted @ 2018-10-29 14:40 丢_泡_泡 阅读(163) 评论(0) 推荐(0) 编辑
  2018年10月25日
摘要: <input name="mobile" value="123456"><button id="sub">提交</button> $('#sub').click(function () { $('[name="mobile"]').trigger('change');});$('[name="mob 阅读全文
posted @ 2018-10-25 15:49 丢_泡_泡 阅读(122) 评论(0) 推荐(0) 编辑