Skip to content

Instantly share code, notes, and snippets.

View shanlanCoding's full-sized avatar

shanlanCoding

View GitHub Profile
@shanlanCoding
shanlanCoding / index.js
Created August 21, 2019 06:17
React状态提示代码示例
// 温度常量标量名
const scaleNames = {
c: "Celsius",
f: "Fahrenheit"
};
// 温度单位转换计算
function toCelsius(fahrenheit) {
return ((fahrenheit - 32) * 5) / 9;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>PC HLS video</title>
<link href="https://cdn.bootcss.com/video.js/6.0.0-RC.5/alt/video-js-cdn.min.css" rel="stylesheet">
</head>
<body>
@shanlanCoding
shanlanCoding / 京东捡漏.js
Last active March 2, 2020 02:13
京东捡漏代码
javascript: (function () {
alert("自动捡漏开启成功,请按下F12 -> console查看详情");
console.info("1.将需要捡漏的商品,加入购物车,通常在电脑京东页面手速快点就可以达到");
console.info("2.从购物车点击结算按钮,进入结算页面");
console.info("3.打开F12,点击右上角的手机图标,进入手机模式,按下F5刷新网页,不出意外此时会进入手机订单结算页面");
console.info("4.将本代码粘贴到Console内,按下回车键启动");
var sleepNumber = (Math.floor(Math.random() * 8) + 11) * 1000;
var loopNum = 0;
var startTimer = new Date();