attr()和val()的区别求详细解答?
素颜
素颜 2017-01-12 14:59:06
0
2
1120

attr()和val()的区别求详细解答?

素颜
素颜

越努力越幸运!!!

reply all (2)
数据分析师

Would you like a detailed answer to the difference between attr() and val()? -PHP Chinese website Q&A-What is the difference between attr() and val()? Please give a detailed answer? -PHP Chinese website Q&A

Let’s take a look and learn.

    迷茫

    attr()是获取或设置元素的属性,比如a标签的href属性,div标签的style属性,checkbox的checked属性。

    val()是获取或设置表单元素的value值。只可以用于表单元素。

      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!