Skip to content

Instantly share code, notes, and snippets.

😎
Born to code

liguangyi hh54188

😎
Born to code
Block or report user

Report or block hh54188

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View trie-tree.html
<html>
<head></head>
<body>
<script>
function isObject(o) {
return Object.prototype.toString.call(o) === "[object Object]";
}
function isArray(a) {
return Object.prototype.toString.call(a) === "[object Array]";
View promise_sequentially.js
// https://hackernoon.com/functional-javascript-resolving-promises-sequentially-7aac18c4431e
// https://decembersoft.com/posts/promises-in-serial-with-array-reduce/
function delay() {
return new Promise((resolve, reject) => {
setTimeout(() => {
console.log('RESOLVED')
resolve()
}, 1000 * 1)
})
}
View direct-promo.js
// http://a.tbcdn.cn/p/mall/2.0/js/direct-promo.js
/**
* 钻石平台定投广告
*
* @creator yubo@taobao.com
* @depends ks-core
*/
KISSY.use('core', function(S){
/**
You can’t perform that action at this time.