js中除了基本类型,就是对象。可以说在js中处处皆对象。 由于js是弱语言,在编写的过程中很容易混淆 object 和 class 也就是对象和构造器。 object(对象):一般对象都由var关键字声明。 class(构造器):js中function除了声明函数,也可以声明构造器。故构造器是特殊的 ...
分类:
Web程序 时间:
2016-08-12 15:15:06
阅读次数:
196
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
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
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
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
题目链接: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
//第一帧响应事件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
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
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