提醒少个括号,不理解missing ( before function parameters.求大神更改.function String.prototype.trim(){return this.replace(/(^\s*)|(\s*$)/g,"");};这是源代码
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/18 02:29:09
![提醒少个括号,不理解missing ( before function parameters.求大神更改.function String.prototype.trim(){return this.replace(/(^\s*)|(\s*$)/g,](/uploads/image/z/10643654-38-4.jpg?t=%E6%8F%90%E9%86%92%E5%B0%91%E4%B8%AA%E6%8B%AC%E5%8F%B7%2C%E4%B8%8D%E7%90%86%E8%A7%A3missing+%28+before+function+parameters.%E6%B1%82%E5%A4%A7%E7%A5%9E%E6%9B%B4%E6%94%B9.function+String.prototype.trim%28%29%7Breturn+this.replace%28%2F%28%5E%5Cs%2A%29%7C%28%5Cs%2A%24%29%2Fg%2C%22%22%29%3B%7D%3B%E8%BF%99%E6%98%AF%E6%BA%90%E4%BB%A3%E7%A0%81)
x){?eۤ&>ٱYu}>Źřy
IiE
iy%y
E%Ez66=]yfoy6e\MpIP^AQ~I~IeAY]ZRZPYWZSY$U4u4k_lg&<ٽF"};l*AWUtjL =dg=Ӟ~~
O'.(X?uuA4dǮ{f.h
.{~Ӿ:kN{9wY-O;ڀ~l<;P 4a
提醒少个括号,不理解missing ( before function parameters.求大神更改.function String.prototype.trim(){return this.replace(/(^\s*)|(\s*$)/g,"");};这是源代码
提醒少个括号,不理解missing ( before function parameters.求大神更改.
function String.prototype.trim(){
return this.replace(/(^\s*)|(\s*$)/g,"");
};这是源代码
提醒少个括号,不理解missing ( before function parameters.求大神更改.function String.prototype.trim(){return this.replace(/(^\s*)|(\s*$)/g,"");};这是源代码
这是什么编程语言呢?
试试把代码改为:
function String.prototype.trim(){
return this.replace(/(^\s*)|(\s*$)/g,"");
}
//就是说去掉{}后面的分号;