js

2016/09/13

var t1 = window.setInterval("scanPrice()",5000);

function scanPrice(){

//定时器

}

-----------------------------------------------------------------

js: var s= "${month}";

""必须加上

EL:<c:if test="${not empty abc}"> or <c:if test="${abc ne null}">

    ...

  </c:if>

 

jquery:

<div class="test-selector">
    <ul class="test-lang">
        <li class="lang-javascript">JavaScript</li>
        <li class="lang-python">Python</li>
        <li class="lang-lua">Lua</li>
    </ul>
    <ol class="test-lang">
        <li class="lang-swift">Swift</li>
        <li class="lang-java">Java</li>
        <li class="lang-c">C</li>
    </ol>
</div>

// 分别选择所有语言,所有动态语言,所有静态语言,JavaScript,Lua,C等:
//selected = $('div.test-selector');
//selected = $('ul.test-lang');
//selected = $('ol.test-lang');
//selected = $('ul.test-lang li:first');
//selected = $('ul.test-lang li:last');
//selected = $('ol.test-lang li:last');
//----selected = $('ol.test-lang li:child(2)');

posted @ 2016-08-19 13:35  F领主  阅读(139)  评论(0编辑  收藏  举报