js对列表中第一个值处理与jsp页面对列表中第一个值处理的区别详解_javascript技巧

WBOY
Release: 2016-05-16 17:17:32
Original
1126 people have browsed it

js:$("

  • "+(i==0?"class='cur'":"")+"
  • ").appendTo("ul");

    jsp:

  • class="${idx.index==1?"cur":""}">
  • //添加样式

    ${idx.index eq 1 ?"checked":""}>//选中第一个

    Related labels:
    source:php.cn
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!