JavaScript获取路径设计源码_javascript技巧

WBOY
Release: 2016-05-16 16:47:11
Original
1120 people have browsed it

1、设计源码

复制代码代码如下:







JavaScript获取路径

















2、设计结果

(1)初始化时

(2)获取当前网址

(3)获取主机地址之后的目录

(4)返回某个指定的字符串值在字符串中首次出现的位置

(5)获取主机地址

(6)获取带“/”的项目名

(7)获取项目路径

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!