HTML/CSS/JavaScript 解法, 执行用时: 1686ms, 内存消耗: 77804KB, 提交时间: 2022-02-08
{"css":"","js":"function _trim(string) {\n // 补全代码\n return string.replace(/^\\s*|\\s*$/g,'') \n}","html":"","libs":[]}
HTML/CSS/JavaScript 解法, 执行用时: 1736ms, 内存消耗: 77808KB, 提交时间: 2022-01-25
{"css":"","js":"function _trim(string) {\n // 补全代码\n return string.trim()\n}","html":"","libs":[]}
HTML/CSS/JavaScript 解法, 执行用时: 1741ms, 内存消耗: 77788KB, 提交时间: 2022-01-26
{"css":"","js":"function _trim(string) {\n // 补全代码\n return string.replace(/(^\\s*)|(\\s*$)/g, \"\");\n}","html":"","libs":[]}
HTML/CSS/JavaScript 解法, 执行用时: 1743ms, 内存消耗: 77884KB, 提交时间: 2022-01-21
{"css":"","js":"function _trim(string) {\n // 补全代码\n return string.trim();\n \n}","html":"","libs":[]}
HTML/CSS/JavaScript 解法, 执行用时: 1746ms, 内存消耗: 77768KB, 提交时间: 2021-12-14
{"css":"","js":"function _trim(string) {\n // 补全代码\n return string.replace(/^\\s|\\s$/g, \"\")\n}","html":"","libs":[]}