📜  URIError - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:03.080000             🧑  作者: Mango

代码示例1
/*Occurs when improperly using a global URI-handling function. 
('URI' = Uniform Resource Identifier).*/

decodeURI('%');

/*The % character is used to encode characters not otherwise allowed in 
URIs, such as spaces (%20). If an invalid character encoding is given, 
a URIError results.*/