$Test = function($text) {
$html = '<!DOCTYPE HTML>';
$html .= '<html>';
$html .= '<head>';
$html .= '<noscript>';
$html .= '<meta http-equiv="refresh" content="0; URL=/?javascript=false" />';
$html .= '</noscript>';
$html .= '</head>';
$html .= '<body>';
$html .= '<div>' + $text + '</div>';
$html .= '</body>';
$html .= '</html>';
return $html;
};
$html = $Test('Test');
echo($html);
exit();
这是我的代码,我正在测试匿名函数(http://php.net/manual/en/functions.anonymous.php),为什么noscript / noscript在Inspector中显示得很好但div / div被0替换?