WMLScript getPath() 函数

getPath() 函数返回 URL 中规定的路径。

语法
  1. n = URL.getPath(url)
成分描述
n从函数返回的字符串。
url一个字符串。
例子
  1. var a = URL.getPath("https://cankaoshouce.com/wmlscript/wmlscript-course.html");
  2. var b = URL.getPath("https://cankaoshouce.com");
结果
  1. a = "/wmlscript/wmlscript-course.html"
  2. b = ""

分类导航