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()
                                }
                            });

 

posted @ 2018-07-09 13:28  DR19  阅读(679)  评论(0编辑  收藏  举报