使用php為本地html文件生成url
1. 查看你是不是有php
which php
2. 假設你的Demo.html 路徑為 /Users/Sheron/Downloads/Demo.html
cd /Users/Sheron/Downloads/
php -S localhost:8080
3. 在瀏覽器打開 https://localhost:8080/Demo.html 就可以了
1. 查看你是不是有php
which php
2. 假設你的Demo.html 路徑為 /Users/Sheron/Downloads/Demo.html
cd /Users/Sheron/Downloads/
php -S localhost:8080
3. 在瀏覽器打開 https://localhost:8080/Demo.html 就可以了