This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
border: 1px solid #143250; | |
background-color: #288edf; | |
box-shadow: inset 0 1px rgba(255, 255, 255, 0.36); | |
color: #fff; | |
font-weight: 500; | |
text-shadow: 0 -1px rgba(0, 0, 0, 0.36); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input { | |
transition: all 0.30s ease-in-out; | |
-webkit-transition: all 0.30s ease-in-out; | |
-moz-transition: all 0.30s ease-in-out; | |
border: #35a5e5 1px solid; | |
border-radius: 4px; | |
outline: none; | |
} | |
input:focus { | |
box-shadow: 0 0 5px rgba(81, 203, 238, 1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Parent(name, age) { | |
this.init.apply(this, arguments); | |
} | |
Parent.prototype = { | |
// 通过init解决参数传递的问题 | |
init: function (name, age) { | |
this.name = name; | |
this.age = age; | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# %W% %E% | |
# | |
# Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved. | |
# | |
# Version | |
version=1 | |
# Component Font Mappings |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function SuppedArray() {} | |
SuppedArray.prototype = new Array; | |
SuppedArray.prototype.forEach = function (fun) { | |
var len = this.length; | |
while (len--) { | |
fun(this[len]); | |
} | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var queue = function(funcs, scope) { | |
(function next() { | |
if(funcs.length > 0) { | |
funcs.shift().apply(scope || {}, [next].concat(Array.prototype.slice.call(arguments, 0))); | |
} | |
})(); | |
}; | |
var obj = { | |
value: null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var throttle = function(func, wait) { | |
var context, args, timeout, result, previous, later; | |
previous = 0; | |
later = function() { | |
previous = new Date(); | |
timeout = null; | |
result = func.apply(context, args); | |
}; | |
return function() { | |
var now = new Date(), remaining = wait - (now - previous); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.factory("EventBus", function() { | |
var eventMap = {}; | |
var EventBus = { | |
on : function(eventType, handler) { | |
//multiple event listener | |
if (!eventMap[eventType]) { | |
eventMap[eventType] = []; | |
} | |
eventMap[eventType].push(handler); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var commentRegExp = /(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg; | |
var cjsRequireRegExp = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://jsfiddle.net/xxtLv0ds/ |