输入banner图图片脚本导航/分类

jslastIndexOf()用法实例

实例:

var src="images/off_1.png";
alert(src.lastIndexOf('/'));
alert(src.lastIndexOf('g'));

弹出值依次为:6,15