03 2017 档案
摘要:1.replace 替换字符串 2.test 匹配字符串,返回 true or false 3.match 匹配字符串,返回数组 4.search 返回位置,没有则返回-1 5.exec 该函数通过对指定你的字符串进行一次匹配检测
阅读全文
摘要:移动端页面设置视口宽度等于设备宽度,并禁止缩放。 <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"> 移动
阅读全文
摘要:var str = '{"name":"huangxiaojian","age":"23"}' var t=JSON.parse(str);console.log(str.name);console.log(t.name); var a = {a:1,b:2};var b=JSON.stringif
阅读全文
摘要:<form action="http://localhost/php01/post.php" method="post"> First name:<br> <input type="text" name="firstname" value="Mickey"> <br> Last name:<br>
阅读全文

浙公网安备 33010602011771号