request url 返回url
<form?action="http://localhost:8080/aaa"?method="POST">
在index.js里面有沒有辦法可以得到http://localhost:8080/aaa這個完整的地址呢?pathname只回復/aaa這個地址
<form?action="http://localhost:8080/aaa"?method="POST">
在index.js里面有沒有辦法可以得到http://localhost:8080/aaa這個完整的地址呢?pathname只回復/aaa這個地址
2019-12-17
舉報
2019-12-20
node和js的語法是一樣的。
你照樣可以用window.location,里面就有各種和url有關的數據
2019-12-20