Php firefox语法错误
我有这样的代码 在line.php文件中: 简单来说,我在查询此页面时只输出一个字符串:Php firefox语法错误,php,javascript,firefox,Php,Javascript,Firefox,我有这样的代码 在line.php文件中: 简单来说,我在查询此页面时只输出一个字符串: <?php print("love you") ?> 好的,当它在谷歌浏览器中使用时,它是正确的,但在firefox中使用时。这是错误的。在错误控制台中,会显示语法错误“love you” 您缺少函数末尾的分号。绘图线在哪里?函数/firefox说错误在哪里?它应该给你一个文件+行引用,不管你做什么样的绘图,如果我错过了,仍然是错误的。此外,它可能值得包括一个库,比如jQuery或mootoo
<?php
print("love you")
?>
好的,当它在谷歌浏览器中使用时,它是正确的,但在firefox中使用时。这是错误的。在错误控制台中,会显示语法错误“love you”
您缺少函数末尾的分号。绘图线在哪里?函数/firefox说错误在哪里?它应该给你一个文件+行引用,不管你做什么样的绘图,如果我错过了,仍然是错误的。此外,它可能值得包括一个库,比如jQuery或mootools,用于这类事情。。。两者都包括健壮且易于使用的AJAX请求;分号
function get_char(product,project){
var lineUrl = 'line.php';
send_http_request(lineUrl,_plot_line);
function _plot_line(request){
;//plot_line(request,product,project) //function to get the line code .
}
}
function send_http_request(url,call_function){
if (window.XMLHttpRequest) { // Mozilla, Safari,...
http_request = new XMLHttpRequest();
if (http_request.overrideMimeType) {
http_request.overrideMimeType('text/xml');
}
} else if (window.ActiveXObject) { // IE
try {
http_request = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
http_request = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {}
}
}
if (!http_request) {
alert('Giving up :( Cannot create an XMLHTTP instance');
return false;
}
http_request.onreadystatechange=function(){
if(http_request.readyState == 4){
call_function(http_request);
}
}
http_request.open('GET',url,false);
http_request.send(null);
return http_request;
}
print("love you");