Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| function car(name) { | |
| this.name = name; | |
| } | |
| car.prototype.getName = function() { | |
| alert(this.name); | |
| } | |
| function benz(name) { | |
| car.call(this,name); | 
| //前提是closeEl已经注册了点击事件,以此类推 | |
| if (document.createEvent) { | |
| var evt = document.createEvent("MouseEvents"); | |
| evt.initEvent("click", true, true); | |
| closeEl.dispatchEvent(evt); | |
| } | |
| else { | |
| closeEl.click(); | |
| } | 
| (function(){ | |
| setTimeout(function(){ | |
| if (iLeft < 900) { | |
| domEl.style['left'] = iLeft + 'px'; | |
| iLeft += iDelta; | |
| iDelta = iDelta * 1; | |
| setTimeout(arguments.callee, 25); | |
| } | |
| else { | |
| domEl.style['left'] = '900px'; | 
| pattern = re.compile(r'''Hello''', re.M) | |
| match = pattern.match('Hello World!') | |
| if match: | |
| return match.group(1) | |
| return None |