<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <script type="text/javascript"> function validate_email(field,text){ ...
分类:
编程语言 时间:
2016-09-05 13:37:51
阅读次数:
169
最近在读一本进阶的JavaScript的书《你不知道的JavaScript(上卷)》,里面分析了很多基础性的概念。 可以更全面深入的理解JavaScript深层面的知识点。 一、函数作用域 1)函数作用域 就是作用域在一个“Function”里,属于这个函数的全部变量都可以在整个函数的范围内使用及复 ...
分类:
编程语言 时间:
2016-09-05 12:23:34
阅读次数:
204
折腾了一个礼拜,终于把任务给提交了;上面给我的任务是在linux下实现定时任务和自动任务,这个定时任务和自动任务有可能会发生并发,所以不得不考虑多线程。我在网上也找了很多资料貌似不符合我的需求,最后结合前辈的智慧和自己的专研,还是实现了; public function testa() { $id ...
分类:
编程语言 时间:
2016-09-05 10:38:16
阅读次数:
148
自己动手写的情况: 一:四要素,动画体,动画体运动轨迹,时间,速度 二:范例:(function(){ function(){} //动画体一 function(){} //动画体二 funciton(){} //动画体三 function(){}})(); //要素控制 ...
分类:
Web程序 时间:
2016-09-05 07:57:47
阅读次数:
298
// 定义一个方法sfHover sfHover = function () { // 获取id为nav的dom元素里面的每个li元素, sfEls是个集合 var sfEls = document.getElementById ("nav").getElementsByTagName ("LI") ...
分类:
Web程序 时间:
2016-09-05 01:45:49
阅读次数:
165
Write a function to delete a node (except the tail) in a singly linked list, given only access to that node. Supposed the linked list is 1 -> 2 -> 3 - ...
分类:
其他好文 时间:
2016-09-05 00:12:35
阅读次数:
198
Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identical a ...
分类:
其他好文 时间:
2016-09-05 00:09:14
阅读次数:
94
Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements. For example, giv ...
分类:
其他好文 时间:
2016-09-05 00:09:12
阅读次数:
120
Given two arrays, write a function to compute their intersection. Example:Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], return [2]. Note: Each element i ...
分类:
其他好文 时间:
2016-09-04 23:57:34
阅读次数:
166
Write a function that takes a string as input and returns the string reversed. Example:Given s = "hello", return "olleh". 即反转字符串,逆序遍历依次append到StringBu ...
分类:
其他好文 时间:
2016-09-04 22:30:28
阅读次数:
267