Code 測試
| <!DOCTYPE html> |
| <html> |
| <body> |
| |
| <form action="/action_page.php" autocomplete="on"> |
| First name:<input type="text" name="fname"><br> |
| Last name: <input type="text" name="lname"><br> |
| E-mail: <input type="email" name="email" autocomplete="off"><br> |
| <input type="submit"> |
| </form> |
| |
| <p>Fill in and submit the form, then reload the page to see how autocomplete works.</p> |
| <p>Notice that autocomplete is "on" for the form, but "off" for the e-mail field.</p> |
| |
| </body> |
| </html> |
| var str = "For more information, see Chapter 3.4.5.1"; |
| var re = /(chapter \d+(\.\d)*)/i; |
| var found = str.match(re); |
| |
| document.write(found); |
window.alert("sss"+i);
window.document.getElementById("div").style.backgroundColor = "red";