Based on https://dribbble.com/shots/2005687-First-shot
A Pen by Nikolay Talanov on CodePen.
Based on https://dribbble.com/shots/2005687-First-shot
A Pen by Nikolay Talanov on CodePen.
'use strict'; | |
for (var i = 0; i < 10; i++) { | |
setTimeout(function() { | |
console.log(i); | |
}, 0); | |
} | |
for (var i = 0; i < 10; i++) { | |
(function(i) { |
#!/bin/bash | |
# --- Command line | |
refname="$1" | |
oldrev="$2" | |
newrev="$3" | |
refex="$7" | |
branch=${refname#refs/heads/} | |
# Make a temp directory for writing the .jshintrc file |
; | |
/** | |
* 要求,种子相同的情况下返回的随机序列数组相同。 | |
* e.g. | |
* <= (1477044467806, 4) | |
* => [3, 2, 0, 1] | |
* | |
* <= (1477044467886, 6) | |
* => [3, 4, 2, 5, 0, 1] | |
* @param seed 随机数种子 |
$('.order-del').each((_, btn) => { | |
let $btn = $(btn); | |
$.ajax({ | |
url: `//order.jd.com/lazy/deleteOrder.action?orderId=${$btn.attr('_orderid')}&PassKey=${$btn.attr('_passkey')}`, | |
dataType: 'jsonp', | |
cache: false | |
}); | |
}); |
<html> | |
<head> | |
<title>文件上传</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
</head> | |
<body> | |
<form id="uploadForm" enctype="multipart/form-data"> | |
<input id="file" type="file" name="file" /> |
user nginx; | |
worker_processes 1; | |
error_log logs/error.log info; | |
pid logs/nginx.pid; | |
events { | |
worker_connections 1024; | |
} | |
http { |
const net = require('net'); | |
// const mapping = [ | |
// { | |
// localHost: '', | |
// localPort: '', | |
// remoteHost: '', | |
// remotePort: '' | |
// } | |
// ]; |
<html> | |
<head> | |
<title>Mock.js</title> | |
</head> | |
<body> | |
<script src="http://mockjs.com/dist/mock.js"></script> | |
<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script> | |
<script> |
<style id="jsbin-css"> | |
.container { | |
width: 100%; | |
border: 1px solid #cec; | |
margin: 10px; | |
} | |
.container .img { | |
width: 100%; | |
} |