$(document).ready(function() { $('#jpgCustomers').jqGrid({ //url from wich data should be requested url: '@Url.Action("C...
分类:
Web程序 时间:
2015-10-12 20:47:31
阅读次数:
393
1、xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");这个设置只有post方法才用的2、x-requested-withXMLHttpRequest是Ajax异步请求方式使用request.get...
分类:
编程语言 时间:
2015-10-11 23:05:21
阅读次数:
238
第一次使用MAVEN编译项目,出现如下错误解决办法:Maven的setting.xml中添加如下代码 Central http://repo1.maven.org/maven2 central
分类:
其他好文 时间:
2015-10-03 14:24:18
阅读次数:
164
其实相当的简单:只需要在服务端设置一下响应头: header("Access-Control-Allow-Origin: *");就可以了!! nice,有木有?下面两句也可以带上:header("Access-Control-Allow-Headers: Origin, X-Requested-W...
分类:
Web程序 时间:
2015-09-26 01:43:13
阅读次数:
148
1.路由请求过程Requested URL(请求的URL)--->Routing engine(路由引擎)--->Parse URL(解析URL)--->Locate matching route(定位匹配的路由)--->Route found(找到路由)--->Route is processed...
分类:
其他好文 时间:
2015-09-25 15:53:38
阅读次数:
191
自己为了测试servlet,用MyEclipse2015写了一个简单的登录程序。1.登录页面index.jsp. 1 2 5 6 7 8 9 10 My JSP 'index.jsp' starting page11 12 13 14 ...
分类:
其他好文 时间:
2015-09-22 08:56:23
阅读次数:
516
z在desiredCapabilities里新增这俩居然fix了问题,原因暂时不得而知: capabilities.setCapability("unicodeKeyboard", "True"); capabilities.setCapability("resetKeyboard", "...
分类:
其他好文 时间:
2015-09-21 17:46:37
阅读次数:
429
1、用visual studio 2015 建立一个 web api 应用程序。记住这是一个 web api 应用。2、新建一个web api 。3、用C#访问,代码如下:[没有问题,返回正确] var requestJson = JsonConvert.SerializeObject(args);...
解决1:.htaccess<IfModulerewrite_module>RewriteEngineonRewriteCond%{REQUEST_FILENAME}!-dRewriteCond%{REQUEST_FILENAME}!-fRewriteRule^(.*)$index.php/$1[QSA,PT,L]</IfModule>
分类:
Web程序 时间:
2015-09-16 01:04:28
阅读次数:
189
XMLHttpRequest cannot loadhttp://www.zjblogs.com/. No ‘Access-Control-Allow-Origin‘ header is present on the requested resource. Origin ‘null‘ is therefore not allowed access. 查了一翻资料,发现原来...
分类:
编程语言 时间:
2015-09-10 21:18:18
阅读次数:
232