Wednesday

javascript find string in string

indexOf returns the position of the string in the other string. If not found, it will return -1.

var s = "foo";
alert(s.indexOf("oo") != -1);

https://developer.mozilla.org/en/Core%5FJavaScript%5F1.5%5FReference/Objects/String/indexOf

No comments:

make ubuntu business casual

to make ubuntu business casual - make it black remove background: gsettings set org.gnome.desktop.background picture-options ...