99

js把值存在header中-12163069-51CTO博客

 6 years ago
source link: http://blog.51cto.com/12173069/2066640
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

js把值存在header中

  1. 存值:
    a. 实例化对象:
    var  head = new Headers();

    b. 存值:

    head.append('name','lee');
  2. 取值:
    console.log(head.get('name'));
  3. 输出:
    lee
©著作权归作者所有:来自51CTO博客作者Lee_吉的原创作品,如需转载,请注明出处,否则将追究法律责任

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK