Zhou Bill
Zhou Bill
貌似在安卓上面会有问题,当键盘弹起时,textInput 会失去焦点,然后执行键盘隐藏,就会出现闪烁
" 123 56 ".replace(/\s+/g, "")
indexOf 字符串,数组也能用吧, ```js function indexOfTest(arrOrString, target, index = 0) { if(Array.isArray(arrOrString)) { for(let i = index; i < arrOrString.length; i++) { if(arrOrString[i] == target) { return i } } return...
> ```js > function formatIndexof(str, target, index) { > let begin = index; > let end = str.length - 1 || 0; > if (begin > end) { > return...
同样的问题,请问上面的老哥解决了没
我ios 不行,但是安卓可以
> 我ios 不行,但是安卓可以 ios 只能用真机调试,在模拟器中貌似获取不到registerId
``` js function dup(list) { let arr = flatten(list); let res = simple(arr); return res; } //先把他扁平化 function flatten(list) { const res = list.reduce((prev, current) => { let temp =...
``` function encode(string) { let result = [] for(let i = 0; i < string.length; i++) { result[i] = ("00" + string.charCodeAt(i).toString(16)).slice(-4); } return "\\u" + result.join("\\u") } function decode(string)...
``` function delneighbor(string) { if(string.length