Home > Web Front-end > JS Tutorial > body text

Detailed explanation of the difference between js processing of the first value in the list and jsp page processing of the first value in the list_javascript skills

WBOY
Release: 2016-05-16 17:17:32
Original
1188 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
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template