What to do if the function passing parameter contains spaces

js method passing parameters sometimes encounter spaces, and spaces will report an error, because it will default to the element after the space

The solution is to use escape and unescape

Use: filepath= escape(row.filepath);//encoding

           filepath= unescape(filepath);//解码

Guess you like

Origin blog.csdn.net/weixin_42217154/article/details/109854513