Windows 10 Emoji shortcuts All In One
Windows 10 Emoji shortcuts All In One
Windows 10
Emoji
快捷键
keyboard shortcut
/ 键盘快捷键
Win
+.
/Win
+;
Press Win
+ period (.
) or Win
+ semicolon (;
) to make the menu pop up.
https://thenextweb.com/microsoft/2017/06/09/windows-10-now-emoji-shorcut-time/
emoji in js
https://github.com/xgqfrms/learning/issues/94
JavaScript stars generator
// emoji length bug
`★★★★★☆☆☆☆☆`.length
// 10
`👍👍👍👍👍👎👎👎👎👎`.length
// 20
`💩💩💩💩💩👎👎👎👎👎`.length
// 20
`🍅🍅🍅🍅🍅💩💩💩💩💩`.length
// 20
`👨👩👦 👨👩👧👧 👩👦👨🏻💻`.length
// 33
const getShitRank = (strings, ...values) => {
const rate = values[0] || 0;
let str = `★★★★★☆☆☆☆☆`;
let start = 5 - rate;
let end = 10 - rate;
if(strings[0]) {
str = strings[0].trim();
start = (5 - rate) * (Math.ceil(str.length/10));
end = (10 - rate) * (Math.ceil(str.length/10));
}
return str.slice(start, end);;
}
getShitRank`👍👍👍👍👍👎👎👎👎👎${1}`;
// "👍👎👎👎👎"
getShitRank`💩💩💩💩💩👎👎👎👎👎 ${1}`;
// "💩👎👎👎👎"
getShitRank`🍅🍅🍅🍅🍅💩💩💩💩💩 ${1}`;
// "🍅💩💩💩💩
(🐞 反爬虫测试!打击盗版⚠️)如果你看到这个信息, 说明这是一篇剽窃的文章,请访问 https://www.cnblogs.com/xgqfrms/ 查看原创文章!
refs
Pure JavaScript Stars Generator All In One
纯 JavaScript 实现星星( 评分 / 评级 / 等级)生成器
https://www.cnblogs.com/xgqfrms/p/17060238.html
©xgqfrms 2012-2020
www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!
原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/14209166.html
未经授权禁止转载,违者必究!