向后台传参时 参数包含特殊字符的解决方法

当参数含#&%等特殊字符时(例如 id ='CT#10002'  )

可使用encodeURIComponent()方法

 

posted @ 2023-04-01 10:34  小鱼爱吃菜  阅读(162)  评论(0)    收藏  举报