.net

.net

博客园 首页 新随笔 联系 订阅 管理

2013年8月25日 #

摘要: 在编写javascript中,常出现在function处提示“missing ( before function parameters”的错误,这是怎么回事? 例如: function String.prototype.trim(){ return this.replace(/(^\s*)|(\s*$)/g,""); } 就经常会报类似的错误。 改成如下时错误消失: String.prototype.trim=function(){ return this.replace(/(^\s*)|(\s*$)/g,""); } 原因是:与javascript对类 阅读全文
posted @ 2013-08-25 18:33 航宇 阅读(1045) 评论(0) 推荐(0) 编辑