PHP和html中的反斜杠:修订间差异
来自三线的随记
无编辑摘要 |
小 (Admin移动页面Php和html中的反斜杠至PHP和html中的反斜杠,不留重定向:强迫症) |
(没有差异)
| |
2019年3月16日 (六) 02:52的版本
在html当中
console.log('\\')
和PHP当中
console.log('\\')
console.log('\\\')
有不同结果,先记录着
html
<script>
account=new RegExp('1\\d{10}')
console.log(account)
</script>
PHP
html
<script>
account=new RegExp('1\\\d{10}')
console.log(account)
</script>