javascriptのstring-pathからファイル名を取得するにはどうすればよいですか?
これが私のコードです
var nameString = "/app/base/controllers/filename.js"; //this is the input path string
ここで何かを実行して、ファイル名のみを取得します
var name = ??? //this value should equal to filename.js
javascriptのstring-pathからファイル名を取得するにはどうすればよいですか?
これが私のコードです
var nameString = "/app/base/controllers/filename.js"; //this is the input path string
ここで何かを実行して、ファイル名のみを取得します
var name = ??? //this value should equal to filename.js