javascript中的decodeURI()函数
它用于解码URL。
说明:要编码URL,请使用ercodeurl()函数。
语法
decodeURI(uri)
javascript中的decodeURI()函数示例
<!DOCTYPE html> <html> <body> <script type="text/javascript"> var uri = "default.aspx?name=onitroad&rank=3"; document.write(encodeURI(uri) + "<br />"); document.write(decodeURI(uri)); </script> </body> </html>
日期:2020-04-18 01:09:20 来源:oir作者:oir
