码迷,mamicode.com
首页 >  
搜索关键字:function    ( 54714个结果
js之oop <一> 创建对象,构造器(class)
js中除了基本类型,就是对象。可以说在js中处处皆对象。 由于js是弱语言,在编写的过程中很容易混淆 object 和 class 也就是对象和构造器。 object(对象):一般对象都由var关键字声明。 class(构造器):js中function除了声明函数,也可以声明构造器。故构造器是特殊的 ...
分类:Web程序   时间:2016-08-12 15:15:06    阅读次数:196
LeetCode-Number of Connected Components in an Undirected Graph
Given n nodes labeled from 0 to n - 1 and a list of undirected edges (each edge is a pair of nodes), write a function to find the number of connected ...
分类:其他好文   时间:2016-08-12 15:01:03    阅读次数:117
Generate Parentheses
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, given n = 3, a solution set is: 这 ...
分类:其他好文   时间:2016-08-12 14:52:51    阅读次数:114
CSS3 transition过渡
transition 属性是一个简写属性,用于设置四个过渡属性: transition-property transition-duration transition-timing-function transition-delay transition-property是用来指定当元素其中一个属性 ...
分类:Web程序   时间:2016-08-12 13:12:52    阅读次数:271
公用提示框写法
toast: function(msg) { var str = "<div class='toast' style='display:none'>" + msg + "</div>"; $('body').append(str); $('.toast').stop().fadeIn(100).de ...
分类:其他好文   时间:2016-08-12 11:40:31    阅读次数:216
动态给table添加动态航
Html代码 <html> <head> <title>usually function</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <script type="text/ ...
分类:其他好文   时间:2016-08-12 11:22:59    阅读次数:207
【Leetcode】Ransom Note
题目链接:https://leetcode.com/problems/ransom-note/ 题目: Given? an ?arbitrary? ransom? note? string ?and ?another ?string ?containing ?letters from? all ?the ?magazines,? write ?a ?function ?that ?wi...
分类:其他好文   时间:2016-08-12 07:54:29    阅读次数:122
飘雪效果的swf
//第一帧响应事件import flash.events.Event; addEventListener(Event.ENTER_FRAME,webcyz); function webcyz(e:Event){ var xuehua:xue= new xue(); xuehua.alpha = Ma ...
分类:其他好文   时间:2016-08-12 06:33:27    阅读次数:188
<LeetCode OJ> 383. Ransom Note
Given? an ?arbitrary? ransom? note? string ?and ?another ?string ?containing ?letters from? all ?the ?magazines,? write ?a ?function ?that ?will ?return ?true ?if ?the ?ransom ? note ?can ?be ?constru...
分类:其他好文   时间:2016-08-12 01:29:13    阅读次数:463
The steps of designing class diagram
1. Find all objects and the corrensponding function of each object.2. Extract the classes from the above objects.2.1 List multiple objects of a same c... ...
分类:其他好文   时间:2016-08-12 01:23:25    阅读次数:133
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!