cqlb

1、小程序:提交前先编码

encodeURIComponent(data)

 

2、服务端解码(PHP)

urldecode(data)

 

3、如果有空格字符串的,保存之前先对空格进行处理,不然空格在页面会变成+号

4、最后在页面进行解码,就能完整显示了

decodeURIComponent(data)

 


 

分类:

技术点:

相关文章:

  • 2021-10-04
  • 2021-11-25
  • 2021-06-24
  • 2021-11-18
  • 2021-12-27
  • 2021-05-09
  • 2021-04-13
猜你喜欢
  • 2022-12-23
  • 2022-01-03
  • 2021-12-20
  • 2022-01-21
  • 2021-09-22
相关资源
相似解决方案