-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathindex.html
50 lines (49 loc) · 1.38 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!--
* @Descripttion:
* @version:
* @Author: 小白
* @Date: 2021-09-13 21:59:11
* @LastEditors: 小白
* @LastEditTime: 2022-02-16 23:54:39
-->
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="favicon.ico" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover"
/>
<meta name="description" content="react ts template" />
<title>react ts template</title>
<!-- 字体库 -->
<link
rel="stylesheet"
href="https://at.alicdn.com/t/font_2119875_3quue9pssv3.css"
/>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/index.tsx"></script>
</body>
<script src="https://as.alipayobjects.com/g/component/fastclick/1.0.6/fastclick.js"></script>
<!-- 移动端取消点击延迟 -->
<script>
FastClick.prototype.focus = function (targetElement) {
let length;
if (
targetElement.setSelectionRange &&
targetElement.type.indexOf('date') !== 0 &&
targetElement.type !== 'time' &&
targetElement.type !== 'month'
) {
length = targetElement.value.length;
targetElement.focus();
targetElement.setSelectionRange(length, length);
} else {
targetElement.focus();
}
};
</script>
</html>