07 2014 档案
摘要:因为php默认获取的是格林威治时间,与北京时间相差8小时。我们要获取到北京时间有两个办法:1、修改php.ini配置文件:打开php.ini文件,一般在php配置根目录下,找到其中的 ;date.timezone,删掉前面的分号,并改为date timezone = PRC。保存,重启Apahce服...
阅读全文
摘要:先上个效果图:在关于页面时,在点击邻居管理后,实现所在页面的提示,相当于文字导航。实现方法:js: 1 var a,b; 2 function admin_op(a,b){ 3 if(b==0){ 4 history.go(0) 5 return tr...
阅读全文
摘要:前台入口文件index.php配置文件:1 '配置值'4 'DEFAULT_C_LAYER' => 'Controller', // 默认的控制器层名称5 'URL_MODEL' => 1, // URL访问模式,可选参数0、1...
阅读全文
摘要:animation:[ || || || || || ] [, [ || || || || || ] ]* 一、animation-name:语法: animation-name: none | IDENT[,none | IDENT]*;取值说明:animation-name...
阅读全文
摘要:转至:http://blog.sina.com.cn/s/blog_4abb9bba0101acsx.html
阅读全文
摘要:form 属性form 属性规定输入域所属的一个或多个表单。注释:form 属性适用于所有 标签的类型。form 属性必须引用所属表单的 id:实例First name:Last name: list 属性list 属性规定输入域的 datalist。datalist 是输入域的选项列表。注释:l...
阅读全文
摘要:浏览器支持Input typeIEFirefoxOperaChromeSafariemailNo4.09.010.0NourlNo4.09.010.0NonumberNoNo9.07.0NorangeNoNo9.04.04.0Date pickersNoNo9.010.0NosearchNo4.01...
阅读全文
摘要:接收 Server-Sent 事件通知EventSource 对象用于接收服务器发送事件通知:实例var source=new EventSource("demo_sse.php");source.onmessage=function(event) { document.getElementBy...
阅读全文
摘要:1 function current(){ 2 var d=new Date(),str=''; 3 var date=((d.getMonth()+1)*30+(d.getFullYear())*365+d.getDate()-(2014*365+7*30+10));//当前天数-要设置时间...
阅读全文
摘要:1 2 $("#pwd").live("click",function(){//① 3 $(this).parents("tr").find("#a_cannel").text("取消"); 4 user=$(this).parents("tr").fin...
阅读全文
摘要:$(this).children().eq(1).text()获取的是显示的值$(this).children().eq(1).html()获取的是之间的所有内容$('.trSelected',grid).find("td").eq(7).text();获取的是选中的某行的内容遍历表<table i...
阅读全文
摘要:echo json_decode(json_encode("修改成功"));这样就行了
阅读全文
摘要:1、在php.ini文件中改动error_reporting改为:error_reporting=E_ALL & ~E_NOTICE2、如果你不能操作php.ini文件,你可以使用如下方法在你想禁止notice错误提示的页面中加入如下代码:/* Report all errors except E_...
阅读全文