How to get the filename from string-path in javascript?
Here is my code
var nameString = "/app/base/controllers/filename.js"; //this is the input path string
do something here to get only the filename
var name = ??? //this value should equal to filename.js
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…