layui中解决ashx筛选数据时中文乱码问题

context.Response.ContentType = "text/json";

HttpUtility.UrlDecode(context.Request["title"], Encoding.UTF8)


//执行重载
                            table.reload('idTest', {
                                method: 'post',
                                page: {
                                    curr: 1 //重新从第 1 页开始
                                },
                                where: {
                                    title: encodeURIComponent(demoReload.val()),
                                    status: sj_state.val()
                                }
                            });

猜你喜欢

转载自www.cnblogs.com/prolion/p/9283379.html