$.ajax({
dataType : ‘json',type : ‘POST',url : ‘http://localhost/test/test.do',data : {id: 1, type: ‘商品'},success : function(data){ } } );
问题:
提交后后台action程序时,取到的type是乱码
解决方法:
方法一:提交前采用enc...
分类:
Web程序 时间:
2014-07-23 13:03:56
阅读次数:
296
需要的jar包:commons-fileupload-1.3.1.jar示例代码:package com.expai.servlet;import java.io.IOException;import java.io.PrintWriter;import java.util.ArrayList;im...
分类:
其他好文 时间:
2014-07-23 13:00:36
阅读次数:
397
[原文链接](http://blog.csdn.net/imyang2007/article/details/7448177)在linux操作系统下,我们有时打开在windows下的txt文件,发现在windows下能正常显示的txt文件出现了中文乱码。出现这种情况的原因为两种操作系统的中文压缩方式...
Error : An error occurred creating the form. See Exception.InnerException for details. The error is: Class not registered (Exception from HRESULT: 0x8...
分类:
其他好文 时间:
2014-07-22 22:46:53
阅读次数:
194
以前在使用aspx页面时可通过在 Page 指令或 配置节中设置 validateRequest="false" 禁用请求验证。但在MVC(Razor)中使用无效。通告搜索得知,只需要在页面所请求的Action上加入 ValidateInput(false)即可。如:[ValidateInput(f...
分类:
Web程序 时间:
2014-07-22 22:36:36
阅读次数:
251
1.在App_Start文件夹中BundleConfig.cs类中添加相应的文件1.1bundles.Add(new ScriptBundle("~/bundles/adminJs").Include("~/Scripts/jquery.js", "~/Scripts/jquery.form.js"...
分类:
Web程序 时间:
2014-07-22 22:35:53
阅读次数:
213
隐藏标题栏(窗口属性):1、设置在该窗体的标题栏中是否显示控件框:this.ControlBox = false;2、设置在该窗体的标题为空:this.Text = string.Empty;3、移动窗口:实现Form的函数WndProc #region 实现点击移动 i...
分类:
移动开发 时间:
2014-07-22 22:32:34
阅读次数:
356
模版显示推荐会员代码
推荐会员
{pc:get sql="SELECT a.userid,a.nickname,b.photo,b.description FROM mobao_member AS a,mobao_form_jianji...
分类:
Web程序 时间:
2014-07-22 17:40:21
阅读次数:
231
webView.getSettings().setDefaultTextEncodingName("UTF -8");//设置默认为utf-8
// webView.loadData(data, "text/html", "UTF -8");//API提供的标准用法,无法解决乱码问题
webView.loadData(data, "text/html; charset...
分类:
Web程序 时间:
2014-07-21 23:16:53
阅读次数:
239
Action类的execute()方法:
public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException ;...
分类:
其他好文 时间:
2014-07-21 22:46:07
阅读次数:
280