We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

这篇翻译不完整。请帮忙从英语翻译这篇文章

 

Symbol.search 指定了一个搜索方法,这个方法接受用户输入的正则表达式,返回该正则表达式在字符串中匹配到的下标,这个方法由以下的方法来调用 String.prototype.search()

更多信息请参见 RegExp.prototype[@@search]()String.prototype.search().

Symbol.search 属性的属性特性:
writable false
enumerable false
configurable false

规范

Specification Status Comment
ECMAScript 2015 (6th Edition, ECMA-262)
Symbol.search
Standard 规范中定义的几个部分
ECMAScript Latest Draft (ECMA-262)
Symbol.search
Draft  

浏览器兼容性

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
基本支持 50 49 (49) 未实现 未实现 未实现
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
基本支持 未实现 未实现 49.0 (49) 未实现 未实现 未实现

参见

文档标签和贡献者

此页面的贡献者: ufolux
最后编辑者: ufolux,