Home > php教程 > php手册 > thinkphp3.2.3版本模板引擎会把反斜杠过滤掉的解决办法,thinkphp3.2.3斜杠

thinkphp3.2.3版本模板引擎会把反斜杠过滤掉的解决办法,thinkphp3.2.3斜杠

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 08:43:04
Original
1209 people have browsed it

thinkphp3.2.3版本模板引擎会把反斜杠\过滤掉的解决办法,thinkphp3.2.3斜杠

   这个问题让我纠结了几个小时,刚开始还以为是JS有问题,一直排查排查,,最后发现,是thinkphp3.2.3把JS正则的反斜杠\过滤掉了,导致JS正则失效,比如\d{4},解析出来变成了d{4}

 

  解决办法是可以用两个反斜杠\\,比如\d{4}写成 \\d{4}即可

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
How to split mysql in thinkphp3.2.3
From 1970-01-01 08:00:00
0
0
0
jquery - thinkphp3.2.3 and Baidu map
From 1970-01-01 08:00:00
0
0
0
thinkphp3.2.3 scheduled task problem
From 1970-01-01 08:00:00
0
0
0
How to use the search function in thinkPHP3.2.3
From 1970-01-01 08:00:00
0
0
0
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template