NCRE官方备考平台
URL类的getPath()方法用于获取URL的路径部分,例如http://www.example.com/abc/def.html中的/abc/def.html部分。
支付后即可查看答案和详细解析