<!DOCTYPEHTML><html><head><metahttp-equiv="Content-Type"content="text/html;charset=utf-8"><title>无标题文档</title><script>window.onload=function(){ varoUl=document.getElementById(‘list‘); varaLi=oUl.getElemen..
分类:
编程语言 时间:
2016-08-10 14:38:59
阅读次数:
211
<?php/* * @param $m 月份 * @param $y 年 * @date 格式化的时间 * 计算一个月的天数 */public function getCurrentMonthDays($date){ $year=date("Y",strtotime($date)); $month= ...
分类:
其他好文 时间:
2016-08-10 14:05:41
阅读次数:
135
在ECMAScript中,创建函数的最常用的两个方法是函数表达式和函数声明,两者期间的区别是有点晕,因为ECMA规范只明确了一点:函数声明必须带有标示符(Identifier)(就是大家常说的函数名称),而函数表达式则可以省略这个标示符: 函数声明: function 函数名称 (参数:可选){ 函 ...
分类:
其他好文 时间:
2016-08-10 12:48:43
阅读次数:
151
<?php header("Content-type:text/html;charset=utf-8"); function is_mobile(){ $user_agent = $_SERVER['HTTP_USER_AGENT']; $mobile_agents = Array("240x320 ...
分类:
移动开发 时间:
2016-08-10 12:47:51
阅读次数:
816
function iFrameHeight() { alert("123"); var ifm = document.getElementById("iframeHome"); var subWeb = document.frames ? document.frames["iframeHome"]. ...
分类:
其他好文 时间:
2016-08-10 12:45:29
阅读次数:
104
生成固定位数的随机数 function generate_code($length = 4) { $min = pow(10 , ($length - 1)); $max = pow(10, $length) - 1; return rand($min, $max); } 生成固定位数的随机数 fu ...
分类:
其他好文 时间:
2016-08-10 12:39:53
阅读次数:
113
<?php/** * Created by PhpStorm. * User: v.liumin * Date: 2016/8/10 * Time: 11:17 */interface Target { public function simpleMethod1(); public function ...
分类:
Web程序 时间:
2016-08-10 12:23:14
阅读次数:
178
题目: Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming weight). For example, the 32- ...
分类:
其他好文 时间:
2016-08-10 11:04:27
阅读次数:
172
一、函数的声明方式 1、普通的函数声明 2、使用变量初始化函数 3、使用Function构造函数 第三种不推荐,因为这种语法导致解析两次代码(第一次解析常规ECMAScript代码,第二次解析传入构造函数中的字符串),从而影响性能,但我们可以通过这种语法来理解,函数是对象,函数名是指针的概念 二、作 ...
分类:
编程语言 时间:
2016-08-10 06:35:48
阅读次数:
220
jQuery中的mouseleave和mouseout的区别 $("li").each(function(i) { //删除的鼠标划过的显示与隐藏 $(this).mouseover(function() { $(this).find(".del").fadeIn(10); }) $(this).m ...
分类:
其他好文 时间:
2016-08-10 06:28:47
阅读次数:
168