Home  >  Article  >  Backend Development  >  后台程序也有浏览器兼容问题?

后台程序也有浏览器兼容问题?

WBOY
WBOYOriginal
2016-06-23 14:01:271515browse

if(!is_numeric($num)){
echo '<script>alert("请输入数字!");</script>';
}

在IE浏览器下输入数字也会执行if里的弹框 求解


回复讨论(解决方案)

后台程序跟浏览器兼容木有关系啊

后台程序跟浏览器兼容木有关系啊


是啊 我也觉得奇怪 可我就是碰到了这样的问题

$num 从哪来的,打印出来看看

Statement:
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