jquery - How to get the last part of a string in Javascript -
how part of string when string length unknown?
hello world
i need
world.
or
hello world weather fine.
i need
weather fine how split it?
var ws='hello world' var w='hello world weather fine.' var ss=w.split(ws); for(i=0;i<ss.length;i++){ if(ss[i].length>0) console.log(ss[i]); }
Comments
Post a Comment