码迷,mamicode.com
首页 >  
搜索关键字:function    ( 54714个结果
javascript表单验证-邮箱验证
<!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(上卷)》,里面分析了很多基础性的概念。 可以更全面深入的理解JavaScript深层面的知识点。 一、函数作用域 1)函数作用域 就是作用域在一个“Function”里,属于这个函数的全部变量都可以在整个函数的范围内使用及复 ...
分类:编程语言   时间:2016-09-05 12:23:34    阅读次数:204
开发源码--php实现多线程
折腾了一个礼拜,终于把任务给提交了;上面给我的任务是在linux下实现定时任务和自动任务,这个定时任务和自动任务有可能会发生并发,所以不得不考虑多线程。我在网上也找了很多资料貌似不符合我的需求,最后结合前辈的智慧和自己的专研,还是实现了; public function testa() { $id ...
分类:编程语言   时间:2016-09-05 10:38:16    阅读次数:148
秒杀JS特效
自己动手写的情况: 一:四要素,动画体,动画体运动轨迹,时间,速度 二:范例:(function(){ function(){} //动画体一 function(){} //动画体二 funciton(){} //动画体三 function(){}})(); //要素控制 ...
分类:Web程序   时间:2016-09-05 07:57:47    阅读次数:298
关于Js下拉导航的解释
// 定义一个方法sfHover sfHover = function () { // 获取id为nav的dom元素里面的每个li元素, sfEls是个集合 var sfEls = document.getElementById ("nav").getElementsByTagName ("LI") ...
分类:Web程序   时间:2016-09-05 01:45:49    阅读次数:165
[leetcode] 237. Delete Node in a Linked List 解题报告
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
[leetcode] 100. Same Tree 解题报告
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
[leetcode] 283. Move Zeroes 解题报告
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
[leetcode] 349. Intersection of Two Arrays 解题报告
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
[leetcode] 344.Reverse String
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!