How to get the file name in JS

xiaoxiao2021-03-06  42

The landlord, you are unclear: If you get the file name of this page, you can use:

Function Get (STR) // Extract this document name from the link address

{

Return str.match (/// ([^ /? /] *) (/? | $) /) [1];

}

Alert (Location.href);

转载请注明原文地址:https://www.9cbs.com/read-63118.html

New Post(0)