String.startsWith - Prototype JavaScript 框架
From Xunxin Prototype API
startsWith1.5.1
startsWith(substring) -> Boolean
检查字符串是否以 substring 作为开头。
样例
'Prototype JavaScript'.startsWith('Pro');
//-> true
From Xunxin Prototype API
startsWith(substring) -> Boolean
检查字符串是否以 substring 作为开头。
'Prototype JavaScript'.startsWith('Pro');
//-> true