String.include - Prototype JavaScript 框架

Xunxin Prototype API

include
1.5.1

include(substring) -> Boolean

检查字符串是否包含子串 substring

样例

'Prototype framework'.include('frame'); 
//-> true 
'Prototype framework'.include('frameset'); 
//-> false