Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Stevenzwzhai/plugs
/ functions
Functions
372 in github.com/Stevenzwzhai/plugs
⨍
Functions
372
◇
Types & classes
16
↓ 57 callers
Function
warn
()
自定义模板-template/js/vue.js:2372
↓ 48 callers
Method
replace
(oldName, newName)
className-option/className.es6.js:25
↓ 19 callers
Function
isObject
* Quick object check - this is primarily used to tell * Objects from primitive values when we know the value * is a JSON-compliant type. *
自定义模板-template/js/vue.js:267
↓ 17 callers
Function
toArray
* Convert an Array-like object to a real Array. * * @param {Array-like} list * @param {Number} [start] - start index * @return {Array}
自定义模板-template/js/vue.js:232
↓ 15 callers
Function
cb
()
自定义模板-template/js/vue.js:369
↓ 15 callers
Function
inDoc
* Check if a node is in the document. * Note: document.documentElement.contains should work here * but always returns false for comment nodes in
自定义模板-template/js/vue.js:1147
↓ 14 callers
Method
get
(key)
cookie/index.js:21
↓ 14 callers
Function
hasOwn
* Check whether the object has the property. * * @param {Object} obj * @param {String} key * @return {Boolean}
自定义模板-template/js/vue.js:79
↓ 14 callers
Method
remove
(className)
className-option/className.es6.js:15
↓ 13 callers
Method
on
(event, callback)
emitter/main.js:12
↓ 12 callers
Function
resolveAsset
* Resolve an asset. * This function is used because child instances need access * to assets defined in its ancestor chain. * * @param {Obj
自定义模板-template/js/vue.js:1932
↓ 11 callers
Function
createAnchor
* Create an "anchor" for performing dom insertion/removals. * This is used in a number of scenarios: * - fragment instance * - v-html * -
自定义模板-template/js/vue.js:1444
↓ 10 callers
Function
defineReactive
* Define a reactive property on an Object. * * @param {Object} obj * @param {String} key * @param {*} val
自定义模板-template/js/vue.js:2252
↓ 9 callers
Function
isPlainObject
(obj)
自定义模板-template/js/vue.js:282
↓ 9 callers
Function
replace
* Replace target with el * * @param {Element} target * @param {Element} el
自定义模板-template/js/vue.js:1255
↓ 9 callers
Method
set
(key, value)
cookie/index.js:9
↓ 8 callers
Function
extend
* Mix properties into target object. * * @param {Object} to * @param {Object} from
自定义模板-template/js/vue.js:249
↓ 8 callers
Function
fn
(vm, el, host, scope, frag)
自定义模板-template/js/vue.js:7447
↓ 8 callers
Function
getAttr
* Get and remove an attribute from a node. * * @param {Node} node * @param {String} _attr
自定义模板-template/js/vue.js:1161
↓ 7 callers
Function
camelize
(str)
自定义模板-template/js/vue.js:170
↓ 7 callers
Function
def
* Define a property. * * @param {Object} obj * @param {String} key * @param {*} val * @param {Boolean} [enumerable]
自定义模板-template/js/vue.js:304
↓ 7 callers
Function
getStyle
(ele, property)
get-background-color/main.js:13
↓ 7 callers
Function
hyphenate
(str)
自定义模板-template/js/vue.js:187
↓ 7 callers
Function
initProp
* Set a prop's initial value on a vm and its data object. * * @param {Vue} vm * @param {Object} prop * @param {*} value
自定义模板-template/js/vue.js:6196
↓ 7 callers
Function
parseDirective
* Parse a directive value and extract the expression * and its filters into a descriptor. * * Example: * * "a + 1 | uppercase" will yie
自定义模板-template/js/vue.js:687
↓ 7 callers
Function
remove
* Remove el from DOM * * @param {Element} el
自定义模板-template/js/vue.js:1229
↓ 7 callers
Function
removeClass
* Remove class with compatibility for IE & SVG * * @param {Element} el * @param {String} cls
自定义模板-template/js/vue.js:1347
↓ 7 callers
Function
toNumber
* Check and convert possible numeric strings to numbers * before setting back to data * * @param {*} value * @return {*|Number}
自定义模板-template/js/vue.js:128
↓ 6 callers
Method
add
(classNames)
className-option/className.es6.js:11
↓ 6 callers
Function
before
* Insert el before target * * @param {Element} el * @param {Element} target
自定义模板-template/js/vue.js:1204
↓ 6 callers
Function
bind
* Simple bind, faster than native * * @param {Function} fn * @param {Object} ctx * @return {Function}
自定义模板-template/js/vue.js:217
↓ 6 callers
Function
getBindAttr
* Get an attribute with colon or v-bind: prefix. * * @param {Node} node * @param {String} name * @return {String|null}
自定义模板-template/js/vue.js:1177
↓ 6 callers
Function
parseExpression
* Parse an expression into re-written getter/setters. * * @param {String} exp * @param {Boolean} needSet * @return {Function}
自定义模板-template/js/vue.js:2967
↓ 6 callers
Function
parseTemplate
* Process the template option and normalizes it into a * a DocumentFragment that can be used as a partial or a * instance template. * * @p
自定义模板-template/js/vue.js:3662
↓ 6 callers
Function
pushDir
* Push a directive. * * @param {String} dirName * @param {Object|Function} def * @param {Array} [interpTokens]
自定义模板-template/js/vue.js:7543
↓ 5 callers
Function
cloneNode
* 1. Deal with Safari cloning nested <template> bug by * manually cloning all template instances. * 2. Deal with IE10/11 textarea placeholder
自定义模板-template/js/vue.js:3603
↓ 5 callers
Function
compile
* Compile a template and return a reusable composite link * function, which recursively contains more link functions * inside. This top level co
自定义模板-template/js/vue.js:6878
↓ 5 callers
Function
getPath
* Get from an object from a path string * * @param {Object} obj * @param {String} path
自定义模板-template/js/vue.js:2740
↓ 5 callers
Function
isFragment
* Check if a node is a DocumentFragment. * * @param {Node} node * @return {Boolean}
自定义模板-template/js/vue.js:1528
↓ 5 callers
Function
isTemplate
* Check if an element is a template tag. * Note if the template appears inside an SVG its tagName * will be in lowercase. * * @param {Elem
自定义模板-template/js/vue.js:1422
↓ 5 callers
Function
observe
* Attempt to create an observer instance for a value, * returns the new observer if successfully observed, * or the existing observer if the val
自定义模板-template/js/vue.js:2228
↓ 5 callers
Function
parseText
* Parse a template text string into an array of tokens. * * @param {String} text * @return {Array<Object> | null} * - {Strin
自定义模板-template/js/vue.js:792
↓ 5 callers
Function
query
* Query an element selector if it's not an element already. * * @param {String|Element} el * @return {Element}
自定义模板-template/js/vue.js:1124
↓ 4 callers
Function
LazyMan
(name)
lazyMan/main.js:98
↓ 4 callers
Function
_toString
* Guard text output, make sure undefined outputs * empty string * * @param {*} value * @return {String}
自定义模板-template/js/vue.js:116
↓ 4 callers
Function
addClass
* Add class with compatibility for IE & SVG * * @param {Element} el * @param {String} cls
自定义模板-template/js/vue.js:1329
↓ 4 callers
Function
applyTransition
* Apply transitions with an operation callback. * * @param {Element} el * @param {Number} direction * 1: enter *
自定义模板-template/js/vue.js:1090
↓ 4 callers
Function
cancellable
* Make a cancellable version of an async callback. * * @param {Function} fn * @return {Function}
自定义模板-template/js/vue.js:368
↓ 4 callers
Function
compileDirectives
* Compile the directives on an element and return a linker. * * @param {Array|NamedNodeMap} attrs * @param {Object} options * @return {Fun
自定义模板-template/js/vue.js:7465
↓ 4 callers
Function
defaultDeal
(arr)
Array-sort/main.js:5
↓ 4 callers
Function
escapeRegex
* Escape a string so it can be used in a RegExp * constructor. * * @param {String} str
自定义模板-template/js/vue.js:766
↓ 4 callers
Function
getFocus
(elem)
自定义模板-template/js/util.js:95
↓ 4 callers
Function
isSimplePath
* Check if an expression is a simple path. * * @param {String} exp * @return {Boolean}
自定义模板-template/js/vue.js:2997
↓ 4 callers
Function
linkAndCapture
* Apply a linker to a vm/element pair and capture the * directives created during the process. * * @param {Function} linker * @param {Vue}
自定义模板-template/js/vue.js:6917
↓ 4 callers
Function
looseEqual
* Check if two values are loosely equal - that is, * if they are plain objects, do they have the same shape? * * @param {*} a * @param {*}
自定义模板-template/js/vue.js:389
↓ 4 callers
Function
modifyListenerCount
(vm, event, count)
自定义模板-template/js/vue.js:9411
↓ 4 callers
Function
next
()
自定义模板-template/js/vue.js:5984
↓ 4 callers
Function
off
* Remove event listener shorthand. * * @param {Element} el * @param {String} event * @param {Function} cb
自定义模板-template/js/vue.js:1283
↓ 4 callers
Function
on
* Add event listener shorthand. * * @param {Element} el * @param {String} event * @param {Function} cb * @param {Boolean} [useCapture]
自定义模板-template/js/vue.js:1271
↓ 4 callers
Function
printInOrder
(node)
search-arithmetic/demo2.js:40
↓ 4 callers
Function
reduce
(num1, num2)
cale-big-num/index.js:17
↓ 4 callers
Function
trimNode
* Trim possible empty head/tail text and comment * nodes inside a parent. * * @param {Node} node
自定义模板-template/js/vue.js:1398
↓ 3 callers
Function
add
()
Sum-1/index.js:11
↓ 3 callers
Function
clean
* "clean" a getter/setter converted object into a plain * object copy. * * @param {Object} - obj * @return {Object}
自定义模板-template/js/vue.js:9042
↓ 3 callers
Function
compileRegex
()
自定义模板-template/js/vue.js:770
↓ 3 callers
Function
contains
* String contain helper * * @param {*} val * @param {String} search
自定义模板-template/js/vue.js:9737
↓ 3 callers
Function
deepClone
(obj)
deepClone/_index.js:1
↓ 3 callers
Function
extractContent
* Extract raw content inside an element into a temporary * container div * * @param {Element} el * @param {Boolean} asFragment * @retur
自定义模板-template/js/vue.js:1372
↓ 3 callers
Function
getTrackByKey
* Get the track by key for an item. * * @param {Number} index * @param {String} key * @param {*} value * @param {String} [trackByKey]
自定义模板-template/js/vue.js:4589
↓ 3 callers
Function
indexOf
* Manual indexOf because it's slightly faster than * native. * * @param {Array} arr * @param {*} obj
自定义模板-template/js/vue.js:353
↓ 3 callers
Function
makeUnlinkFn
* Linker functions return an unlink function that * tearsdown all directives instances generated during * the process. * * We create unlin
自定义模板-template/js/vue.js:6958
↓ 3 callers
Function
mapNodeRange
* Map a function to a range of nodes . * * @param {Node} node * @param {Node} end * @param {Function} op
自定义模板-template/js/vue.js:1479
↓ 3 callers
Function
mergeOptions
* Merge two option objects into a new one. * Core utility used in both instantiation and inheritance. * * @param {Object} parent * @param
自定义模板-template/js/vue.js:1885
↓ 3 callers
Function
renderFruits
(list)
fuzzySearch/main.js:27
↓ 3 callers
Function
set
(obj, key, val)
自定义模板-template/js/vue.js:12
↓ 3 callers
Function
setClass
* In IE9, setAttribute('class') will result in empty class * if the element also has the :class attribute; However in * PhantomJS, setting `clas
自定义模板-template/js/vue.js:1313
↓ 3 callers
Function
stringToFragment
* Convert a string template to a DocumentFragment. * Determines correct wrapping by tag types. Wrapping * strategy found in jQuery & component/d
自定义模板-template/js/vue.js:3491
↓ 3 callers
Function
stripQuotes
* Strip quotes from a string * * @param {String} str * @return {String | false}
自定义模板-template/js/vue.js:155
↓ 3 callers
Function
tokensToExp
* Format a list of tokens into an expression. * e.g. tokens parsed from 'a {{b}} c' can be serialized * into one single expression as '"a " + b
自定义模板-template/js/vue.js:849
↓ 3 callers
Function
withoutConversion
(fn)
自定义模板-template/js/vue.js:2092
↓ 2 callers
Function
_debounce
* Debounce a function so it only gets called after the * input stops arriving after the given wait period. * * @param {Function} func * @p
自定义模板-template/js/vue.js:322
↓ 2 callers
Function
add
(num1, num2)
cale-big-num/index.js:2
↓ 2 callers
Function
after
* Insert el after target * * @param {Element} el * @param {Element} target
自定义模板-template/js/vue.js:1215
↓ 2 callers
Function
apply
* Add or remove a class/classes on an element * * @param {Element} el * @param {String} key The class name. This may or may not *
自定义模板-template/js/vue.js:5616
↓ 2 callers
Function
baseCompare
(a, b, sortKeyIndex)
自定义模板-template/js/vue.js:9713
↓ 2 callers
Function
callback
()
debouncing/index.js:5
↓ 2 callers
Method
checkNames
(classNames)
className-option/className.es6.js:5
↓ 2 callers
Function
cleanupIfPossible
()
自定义模板-template/js/vue.js:8691
↓ 2 callers
Function
compileNode
* Compile a node and return a nodeLinkFn based on the * node type. * * @param {Node} node * @param {Object} options * @return {Function
自定义模板-template/js/vue.js:7093
↓ 2 callers
Function
compileSetter
* Compile a setter function for the expression. * * @param {String} exp * @return {Function|undefined}
自定义模板-template/js/vue.js:2948
↓ 2 callers
Function
diffWalk
(oldNode, newNode, index, patches)
virtual-dom/diff.js:17
↓ 2 callers
Function
extractAttrs
* Helper to extract a component container's attributes * into a plain object array. * * @param {Element} el * @return {Array}
自定义模板-template/js/vue.js:7728
↓ 2 callers
Function
extractFragment
* Extract qualified content nodes from a node list. * * @param {NodeList} nodes * @return {DocumentFragment}
自定义模板-template/js/vue.js:7806
↓ 2 callers
Function
findPrevFrag
* Helper to find the previous element that is a fragment * anchor. This is necessary because a destroyed frag's * element could still be lingeri
自定义模板-template/js/vue.js:4532
↓ 2 callers
Function
findRef
(node)
自定义模板-template/js/vue.js:1459
↓ 2 callers
Function
formatArr
(list, keyword)
Array-Deal/index.js:59
↓ 2 callers
Function
formatToken
* Format a single token. * * @param {Object} token * @param {Vue} [vm] * @param {Boolean} [single] * @return {String}
自定义模板-template/js/vue.js:868
↓ 2 callers
Function
getClass
* For IE9 compat: when both class and :class are present * getAttribute('class') returns wrong value... * * @param {Element} el * @return
自定义模板-template/js/vue.js:1295
↓ 2 callers
Function
getDays
(year, month)
interview/demo4.js:55
↓ 2 callers
Function
getIsBinding
* Get "is" binding from an element. * * @param {Element} el * @param {Object} options * @return {Object|undefined}
自定义模板-template/js/vue.js:1611
next →
1–100 of 372, ranked by callers