This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var target = 'hoge'; | |
var search = 'og'; | |
if(target.indexOf(search) != -1) { | |
console.log('部分一致'); | |
} else { | |
console.log('部分一致ではない'); | |
} |