bootstrap-table Post请求传参中文乱码
bootstrap-table 使用post请求需要添加contentType: ‘application/x-www-form-urlencoded’,最近发现有中文乱码的情况,只需要在初始化bootstrapTable的时候contentType中添加charset=utf-8,具体代码如下:
method: 'post',
contentType: 'application/x-www-form-urlencoded;charset=utf-8',