You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

You can get filename and its path easily by the string operation function included in JavaScript.

	var url = "https://google.com/chunkang/kurapa.jpg";
	var filename = url.substring(url.lastIndexOf('/')+1);
	var path = url.replace(filename,"");


  • No labels