Home  >  Article  >  Backend Development  >  用php提取IP作为JAVASCRIPT变量用提示"缺少';'"解决方案

用php提取IP作为JAVASCRIPT变量用提示"缺少';'"解决方案

WBOY
WBOYOriginal
2016-06-13 10:09:15888browse

用php提取IP作为JAVASCRIPT变量用提示"缺少';'"

如果不用
var frip=;
是正常的
否则提示
function GetIP(){
 if(!empty($_SERVER["HTTP_CLIENT_IP"])){
缺少“;”

------解决方案--------------------
var frip="";

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
Previous article:php生成排号,该怎么处理Next article:,关于ISG