js截取字符串

作者: cayman 分类: 编程技术 发布时间: 2017-02-16 12:40

function jzmac(start,end,str){

startid=str.indexOf(start);//开始的id

endid=str.indexOf(end);//获取结束的id

startlen=start.length

return str.substring(startid+startlen,endid)

}

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注