客户反馈说点击页面报错,提示
Namespace declaration statement has to be the very first statement in the script
提示位置是:Home\Controller\CatController.class.php
估计是文件有BOM的问题,由于是团队开发,新手直接在目录下建立txt文件,然后改为php或HTML,从而导致出...
分类:
其他好文 时间:
2014-07-31 21:04:17
阅读次数:
236
import?urllib.request
#jk409??2014-7-31?by?python3.4编写用于[批量]查询IP地址国家区域
def?chaxun(ip_addr):
????ip_addr2=ip_addr
????domain_addr=‘http://ip.taobao.com/service/getIpInfo...
分类:
编程语言 时间:
2014-07-31 17:23:27
阅读次数:
251
//获取本地项目路径
String path=request.getSession().getServletContext().getRealPath("upload/img/product");
//二进制上传MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;//获取文件C...
分类:
编程语言 时间:
2014-07-31 17:07:47
阅读次数:
420
例如: document.cookie = "JSESSIONID=17670318F94DA12B50D06762EAA9973F;domain="+domain+";path="+path; 说明1:如果域名路径下存在该cookiename,则重写,如果不存在则创建。 说明2:chrome和ie认为localhost...
分类:
其他好文 时间:
2014-07-31 13:48:56
阅读次数:
390
测试Apache服务器:重启apache: sudo /usr/local/apache/bin/apachectl restart 若出现错误: httpd: Could not reliably determine the server's fully qualified domain ...
分类:
其他好文 时间:
2014-07-31 12:34:06
阅读次数:
174
其实用什么技术,这一点真的没有硬性的要求,有人觉得struts好用,有人就觉得springMVC先进。总的来说,实现的功能都是大体一致的。有时候架构师一直使用struts,为了项目的稳定,就一直沿用;而一些先进分子总是喜欢在项目中常识新的技术,也促进了这项技术的发展。单就struts和springMVC来说,都是controller层的框架,作用都是接收request请求,中间调用业务逻辑代码,最后返回reponse响应,不用刻意远离SSH,也不用一味追求Spring MVC。总之,合适的就是最好的。...
分类:
编程语言 时间:
2014-07-31 00:07:45
阅读次数:
369
1: ViewData传值方式ViewData的生命周期和View相同, 只对当前View有效. ViewData["zd"] = dfdfd2:TempData传值方式 可以跨Action传递 TempData的数据至多只能经过一次Controller传递, 并且每个元素至多只能被访问一次, 例如...
分类:
Web程序 时间:
2014-07-30 23:33:15
阅读次数:
336
system:openSuSE 12.3(much better and frendly than the 12.1 in network config)1,network config,attention the Domain Name,site is the zone name,linux-jo...
分类:
其他好文 时间:
2014-07-30 23:10:55
阅读次数:
272
和表格视图类似 UICollectionView的使用有两种方法
一种是继承UICollectionViewController,这个Controller会自带一个UICollectionView;
另外一种是创建一个UIConllectionView 视图放在普通的UIViewController里面。
我们用第二种
首先声明先声明一个重用标示 和实现委托
#define...
分类:
移动开发 时间:
2014-07-30 14:48:03
阅读次数:
185
补充: form表单需要提交时间,springmvc封装到实体类的Date字段时,丢失时分秒,可以在controller中添加 ????@InitBinder
????public?void?initBinder(WebDataBinder?binder)?{
????????Sim...
分类:
编程语言 时间:
2014-07-30 12:33:44
阅读次数:
356