将对应emoji表情的符号码复制后输入你的markdown文本即可显示emoji表情。
如:blush:,显示为:blush:
| syntax | preview | syntax | preview | syntax | preview |
|---|---|---|---|---|---|
:bowtie: |
:smile: |
😄 | :laughing: |
😆 |
| import { expect } from 'chai'; | |
| import jsdom from 'jsdom'; | |
| describe('JSDOM', () => { | |
| it('should communicate with inner iframes', done => { | |
| jsdom.env({ | |
| url: "http://bar.com/", | |
| done (err, window) { | |
| var frame = window.document.createElement('iframe'); | |
| window.document.body.appendChild(frame); |
| // 金额大小写自动转换 | |
| function ChangeToBig(value) { | |
| if (value == null || value == "") { | |
| //return "错误金额"; | |
| return ""; | |
| } | |
| value = "" + value; | |
| var intFen, i; |
| var canvas = document.getElementById('canv'), | |
| ctx = canvas.getContext('2d'), | |
| img = document.getElementById('image'); | |
| function grow(el) { | |
| el.style.height = "10rem"; | |
| el.style.height = (el.scrollHeight)+"px"; | |
| } | |
| var generate = function() { |
| parse = function(input) { | |
| if (input instanceof Date) { | |
| return input; | |
| } else if (!isNaN(input)) { | |
| return new Date(input); | |
| } else if (/^\d+$/.test(input)) { | |
| return new Date(parseInt(input, 10)); | |
| } else { | |
| var s = (input || '').trim(); | |
| s = s.replace(/\.\d+/, ''); // remove milliseconds |
| function htmlEntities(str) { | |
| return String(str) | |
| .replace(/&/g, '&') | |
| .replace(/</g, '<') | |
| .replace(/>/g, '>') | |
| .replace(/"/g, '"'); | |
| } |
| input[type="file"]{ | |
| -webkit-appearance: none; | |
| text-align: left; | |
| -webkit-rtl-ordering: left; | |
| } | |
| input[type="file"]::-webkit-file-upload-button{ | |
| -webkit-appearance: none; | |
| float: right; | |
| margin: 0 0 0 10px; | |
| border: 1px solid #aaaaaa; |
Here are a list of headless browsers that I know about:
| // 颜色#FF00FF格式转为Array(255,0,255) | |
| function color2rgb(color) { | |
| var r = parseInt(color.substr(1, 2), 16); | |
| var g = parseInt(color.substr(3, 2), 16); | |
| var b = parseInt(color.substr(5, 2), 16); | |
| return new Array(r, g, b); | |
| } | |
| // 颜色Array(255,0,255)格式转为#FF00FF | |
| function rgb2color(rgb) { |
| var frame_func = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(func) { | |
| window.setTimeout(func, 1000 / 60); | |
| }; | |
| //帧动画,做定时任务 | |
| //动画循环 | |
| if (!window.requestAnimationFrame) { | |
| window.requestAnimationFrame = (window.webkitRequestAnimationFrame || | |
| window.mozRequestAnimationFrame || | |
| window.msRequestAnimationFrame || | |
| window.oRequestAnimationFrame || |