2016年7月23日

JavaScript获取当前根目录

摘要: 主要用到Location 对象,包含有关当前 URL 的信息,是 Window 对象的一个部分,可通过 window.location 属性来访问。 方法一 (window.document.location.href/window.document.location.pathname) 方法二(w 阅读全文

posted @ 2016-07-23 11:02 王东明 阅读(531) 评论(0) 推荐(0) 编辑

导航