HTML/CSS/JavaScript 解法, 执行用时: 1735ms, 内存消耗: 77772KB, 提交时间: 2021-12-12
{"css":"","js":"function _indexof(array,value) {\n // 补全代码\n return array.indexOf(value);\n}","html":"","libs":[]}
HTML/CSS/JavaScript 解法, 执行用时: 1738ms, 内存消耗: 77772KB, 提交时间: 2021-11-30
{"css":"","js":"function _indexof(array,value) {\n // 补全代码\n return array.indexOf(value)>0?array.indexOf(value):-1\n \n}","html":"","libs":[]}
HTML/CSS/JavaScript 解法, 执行用时: 1740ms, 内存消耗: 77788KB, 提交时间: 2021-12-31
{"css":"","js":"function _indexof(array,value) {\n // 补全代码\nreturn array.reduce((p,c,i) => p<0&&c===value? i:p, -1)\n}","html":"","libs":[]}
HTML/CSS/JavaScript 解法, 执行用时: 1742ms, 内存消耗: 77780KB, 提交时间: 2021-12-06
{"css":"","js":"function _indexof(array,value) {\n // 补全代码\n return array.indexOf(value)>=0?array.indexOf(value):-1;\n}","html":"","libs":[]}
HTML/CSS/JavaScript 解法, 执行用时: 1743ms, 内存消耗: 77920KB, 提交时间: 2021-11-28
{"css":"","js":"function _indexof(array,value) {\n // 补全代码\n\n return array.indexOf(value)>=0?array.indexOf(value):-1;\n\n}","html":"","libs":[]}