載入中
載入中
載入錯誤
還在載入中,請稍候...

    Tetsuhiko的筆記

    HTML / JavaScript 測試

    • 2018-05-05 04:07:47
    • 114
    • 程式
    • Tetsuhiko

    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";


    Top