zoukankan      html  css  js  c++  java
  • 补零补零

    var _ = ['00', '01', '02', '03', '04', '05', '06', '07', '08', '09'], //补零
    d = new Date(),
    h = d.getHours(),
    m = d.getMinutes(),
    s = d.getSeconds();
    return [_[h] || h, _[m] || m, _[s] || s].join(":");

    ======

    1,this[监听器的对象]
    2,event.target[当前目标对象]
    <ul onclick="test()">
    <li></li>
    </ul>

    1,你按那里都是:
    <ul onclick="test()">
    <li></li>
    </ul>
    2,他可能是ul or li

  • 相关阅读:
    POJ 1673
    POJ 1375
    POJ 1654
    POJ 1039
    POJ 1066
    UVA 10159
    POJ 1410
    POJ 2653
    POJ 2398
    POJ 1556
  • 原文地址:https://www.cnblogs.com/jayruan/p/6366921.html
Copyright © 2011-2022 走看看