摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="keywords" content="js数组操作"> <meta name="description" content="js基础之数组api练习"> 阅读全文
posted @ 2016-09-07 21:18 不正经的CodeMonkey 阅读(197) 评论(0) 推荐(0) 编辑
摘要: var str="hello world";// 1 charAt() 返回字符串的第几个下标字符 console.log(str.charAt(4));// 2:fixed() 以打字机字体显示字符串 document.write(str.fixed());// 3:indexOf()返回某个字符 阅读全文
posted @ 2016-09-07 16:35 不正经的CodeMonkey 阅读(217) 评论(0) 推荐(0) 编辑
摘要: JavaScript中有三个可以对字符串编码的函数,分别是: escape,encodeURI,encodeURIComponent,相应3个解码函数:unescape,decodeURI,decodeURIComponent 。 下面简单介绍一下它们的区别 1 escape()函数 定义和用法 e 阅读全文
posted @ 2016-09-07 16:28 不正经的CodeMonkey 阅读(157) 评论(0) 推荐(0) 编辑
摘要: HTML <form> 标签的 enctype 属性 在下面的例子中,表单数据会在未编码的情况下进行发送: 定义和用法 enctype 属性规定在发送到服务器之前应该如何对表单数据进行编码。 默认地,表单数据会编码为 "application/x-www-form-urlencoded"。就是说,在 阅读全文
posted @ 2016-09-07 16:12 不正经的CodeMonkey 阅读(5252) 评论(0) 推荐(3) 编辑