美文网首页
Day2 慕课

Day2 慕课

作者: Hathaway_桉 | 来源:发表于2017-06-01 21:23 被阅读0次

    <h3>url的方法:</h3>


    Paste_Image.png

    <h3>url.parse()方法</h3>

    Paste_Image.png

    补全了以后的显示信息:


    Paste_Image.png

    <h3>url.resolve()方法</h3>

    Paste_Image.png

    <h3>url.parse(para1,para2)方法</h3>
    这里的para2如果设置为true的话,会使用Querystring方法(现在被解析成对象),如果没有设置默认为false,和parse(para1)方法是一样的


    Paste_Image.png

    对比url.parse()方法的query值,如下图所示(原来是字符串):

    Paste_Image.png

    相关文章

      网友评论

          本文标题:Day2 慕课

          本文链接:https://www.haomeiwen.com/subject/iyaefxtx.html