##replace 替换/和. 为 -
function convertToid(path) {
return path.replace(/\.|\//g, '-')
}
##endwith
String.prototype.endWith = function(suffix) {
return this.indexOf(suffix, this.length - suffix.length) !== -1;
};
##replace 替换/和. 为 -
function convertToid(path) {
return path.replace(/\.|\//g, '-')
}
##endwith
String.prototype.endWith = function(suffix) {
return this.indexOf(suffix, this.length - suffix.length) !== -1;
};