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(){ | |
var ajaxPreFilter = function (funs) { | |
window.soucexhr = window.soucexhr || window.XMLHttpRequest; | |
window.pendingRequestUrl = {}; | |
window.pendingData = {}; | |
window.xhrTime = {}; |
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 isObjectValueEqual(a, b) { | |
var aProps = Object.getOwnPropertyNames(a); | |
var bProps = Object.getOwnPropertyNames(b); | |
if (aProps.length != bProps.length) { | |
return false; | |
} | |
for (var i = 0; i < aProps.length; i++) { |
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
re = /^ ([\u4e00-\u9fa5|( |,。、;:!?<br>¥《》()\w\.)*)]+)/gi | |
str = ' 如果有人对《授权书》及V.Fine平台,V.Fine会出示更多音乐人授权证明,帮助客户维权。' | |
console.log str.match re | |
console.log RegExp.$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
—– BEGIN LICENSE —– | |
TwitterInc | |
200 User License | |
EA7E-890007 | |
1D77F72E 390CDD93 4DCBA022 FAF60790 | |
61AA12C0 A37081C5 D0316412 4584D136 | |
94D7F7D4 95BC8C1C 527DA828 560BB037 | |
D1EDDD8C AE7B379F 50C9D69D B35179EF | |
2FE898C4 8E4277A8 555CE714 E1FB0E43 | |
D5D52613 C3D12E98 BC49967F 7652EED2 |
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
fs = require 'fs' | |
xlsx = require 'better-xlsx' | |
file = new xlsx.File | |
sheet = file.addSheet '翻译对照表' | |
en = require './en' | |
cn = require './cn' | |
data = [] | |
for key, value of cn | |
data.push [key, value, en[key]] |
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
fs = require 'fs' | |
path = require 'path' | |
module.exports = (paths, extname) -> | |
allFiles = [] | |
getFile = (dirPath) -> | |
try | |
if (path.extname dirPath) is ".#{extname}" | |
allFiles.push dirPath | |
else if do (fs.statSync dirPath).isDirectory | |
for p in fs.readdirSync dirPath |
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{ | |
position: relative; | |
} | |
.border-1px::after { | |
display: block; | |
position: absolute; | |
left: 0; | |
bottom: 0; | |
width: 100%; |
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 padZeros(str, len) { | |
if (str.length < len) { | |
let toAdd = len - str.length; | |
while (toAdd) { | |
str = '0' + str; | |
toAdd--; | |
} | |
} | |
return str; | |
} |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
<style type="text/css"> | |
html, body { | |
margin: 0; | |
padding: 0; | |
} |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
<style type="text/css"> | |
html, body { | |
margin: 0; | |
padding: 0; | |
} |
NewerOlder