一個簡單的php文件被編輯在/var/www/html/tmp/test.php。爲什麼firefox無法在vim中解析我的php?
<html>
<p>haha</p>
<?php
echo "test";
?>
</html>
在firefox中用firefox打開它127.0.0.1/tmp/test.php。
F12被映射到執行火狐解析PHP文件在/ etc/VIM /的vimrc。
nmap <F12>f :!firefox 'http://127.0.0.1/tmp/%'<CR>
現在到vim /var/www/html/tmp/test.php並按F12。
發生了一個難以置信的反應。
1.firefox根本沒有被調用。
2.chrome開放反應,結果錯誤。
你是什麼defaumt瀏覽器? –