摘要: 问题重现: 当项目下:Controller/HomeController.cs时, 人在创建一个域Test,之后在建一个同名的HomeController: Areas/Test/Controller/HomeController.cs运行报错:Multiple types were found that match the controller named 'Home'. This can happen if the route that services this request ('{controller}/{action}/{id}/') does no 阅读全文
posted @ 2010-05-17 12:32 Daniel Chow 阅读(1735) 评论(1) 推荐(0) 编辑
摘要: 原理:JSONP即JSON with Padding。由于同源策略的限制,XmlHttpRequest只允许请求当前源(域名、协议、端口)的资源。如果要进行跨域请求,我们可以通过使用html的script标记来进行跨域请求,并在响应中返回要执行的script代码,其中可以直接使用JSON传递javascript对象。这种跨域的通讯方式称为JSONP。个人理解: 就是在客户端动态注册一个函数func... 阅读全文
posted @ 2010-05-17 09:13 Daniel Chow 阅读(2873) 评论(0) 推荐(1) 编辑