随笔分类 -  javascript

摘要:只针对文本编码 encodeURI() 只针对文本解码 decodeURI()针对文本和特殊字符的编码 encodeURIComponent()针对文本和特殊字符的解码 decodeURIComponent() 阅读全文
posted @ 2017-11-02 15:42 刘倩文 阅读(9991) 评论(0) 推荐(0)
摘要:<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>获取当下往后七天的时间</title></head><body><script> //方法一:借鉴来的 function getAfterDate(n) { var 阅读全文
posted @ 2017-07-22 12:07 刘倩文 阅读(1071) 评论(0) 推荐(0)