Method description:
Extract the last part of the path separated by ‘/’. (8 see examples for details)
Grammar:
Since this method belongs to the path module, the path module needs to be introduced before use (var path= require(“path”) )
Receive parameters:
p The path to be processed
ext Characters to filter
Example: