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