-
Notifications
You must be signed in to change notification settings - Fork 0
tools.js
Carl's edited this page May 31, 2021
·
11 revisions
- 传递参数:
- 参数1:"abcdef"
- 参数2:"b"
- 返回:
[{index:"1",text:"b"}]
- params:
- params1: ”nihaoma“
- params2:来之zh.js文件的
zhKeysArray
格式如:["chuang", "shuang", "zhuang", "chang", "cheng", "chong", "chuai"]
- return:
[ { index: 0 key: "ni" }, { index: 2 key: "hao" }, { index: 5 key: "ma" }, ]
- params:
- params1: ”nihao“
- params2:来之本地localstorage 格式如:
["__$lastClearTime","nihao"]
- return :
[ { index: 0 key: "nihao" } ]
- params:
- params1: ”nihao“
- params2:来之本地localstorage 格式如:
["__$lastClearTime"]
- return:
[] ```
- params: "你"
- return:
`<span class="vue-keyboard-text-item" tabindex="0">你</span>`
- params:"1"
- return:
[`<span class="vue-keyboard-text-item" tabindex="0">1</span>`]
- params:
4<img attr-img=""vue-keyboard-cn-emoji" class=" emoji-icon icon-wink" src="https://raw.githubusercontent.com/MTTTM/vue-keyboard-cn/main/src/dev/assets/images//person/6_wink.png" />1
- return:
[
'<span class="vue-keyboard-text-item" tabindex="0">4</span>',
'<img attr-img=""vue-keyboard-cn-emoji" class=" emoji-icon icon-wink" src="https://raw.githubusercontent.com/MTTTM/vue-keyboard-cn/main/src/dev/assets/images//person/6_wink.png" />',
'<span class="vue-keyboard-text-item" tabindex="0">1</span>'
]
- params:"0\r\n2"
- return:
[
'<span class="vue-keyboard-text-item" tabindex="0">0</span>',
'<br/>',
'<span class="vue-keyboard-text-item" tabindex="0">2</span>'
]
- case:
let createChild=function(elementName="p"){
let t=document.createElement("div");
wrap.appendChild(t);
}
createChild("p");
createChild("p");
createChild("p");
createChild("div");
document.body.appendChild(wrap)
- params: HTML DOM Div Object
- return 3
- params :
<span class="vue-keyboard-text-item" tabindex="0">0</span>
- return :0
- params:
<img attr-img=""vue-keyboard-cn-emoji" class=" emoji-icon icon-blush" src="https://raw.githubusercontent.com/MTTTM/vue-keyboard-cn/main/src/dev/assets/images//person/4_blush.png" />
- return
<img attr-img=""vue-keyboard-cn-emoji" class=" emoji-icon icon-blush" src="https://raw.githubusercontent.com/MTTTM/vue-keyboard-cn/main/src/dev/assets/images//person/4_blush.png" />
- params:
<br/>
- return:" "
- case:
let arr=Array.from(new Array(100).keys()).fill(uuid());//create an array length is 100 and fill it uuid();
retun new Set(arr).size === arr.length
- return :true
happy,ending!!