人别识脸脸人用不贷网些哪?(到着看)V QAWS八八八五三0

The page is temporarily unavailable
nginx error!
The page you are looking for is temporarily unavailable.
Please try again later.
Website Administrator
Something has triggered an error on your
This is the default error page for
nginx that is distributed with
It is located
/usr/share/nginx/html/50x.html
You should customize this error page for your own
site or edit the error_page directive in
the nginx configuration file
/etc/nginx/nginx.conf.The page is temporarily unavailable
nginx error!
The page you are looking for is temporarily unavailable.
Please try again later.
Website Administrator
Something has triggered an error on your
This is the default error page for
nginx that is distributed with
It is located
/usr/share/nginx/html/50x.html
You should customize this error page for your own
site or edit the error_page directive in
the nginx configuration file
/etc/nginx/nginx.conf.jquery中each遍历对象和数组示例
投稿:whsnow
字体:[ ] 类型:转载 时间:
jquery中each可用于遍历对象和数组,如需退出each循环可使回调函数返回false,下面有个示例,大家可以看看
&通用遍历方法,可用于遍历对象和数组。$().each(),回调函数拥有两个参数:
第一个为对象的成员或数组的索引,第二个为对应变量或内容。如需退出each循环可使回调函数返回false
现有如下两个select
&select id="PLANTYPE"&
&option value="0"&-所有-&/option&
&option value="1"&新建&/option&
&option value="2"&续建&/option&
&select id="AUDITTYPE"&
&option value="0"&-所有-&/option&
&option value="1"&申报&/option&
&option value="2"&修改&/option&
使用each方法获取option中的文本值,即 -所有-、新建、续建...
如果只使用一次each循环 可从option处开始
$("option").each(function(index,data){
($( data ).text());
//或者($(this).text());
也可从select处开始
$("select").each(function( index,data){
$("option", data).each(function(m,n){
($(this).text());
$("option", data)一定要加上 data或者$("option",this),表示此对象下的option
否则就是所有的option。
--------------------------华丽的分割线-----------------------------
each还有一种用法jQuery.each(object, [callback])
不同于jQuery对象的$().each()方法,此方法可用于例遍任何对象。
用此方法同样遍历上述代码
$.each($("option"),function(index,data){
(index+" "+data);
也可以遍历数组
$.each( [0,1,2], function(i, n){
( "Index:" + i + ": " + n );
$.each({ name: "itmyhome", addr: "Beijing" },function(i, n){
("Name: " + i + ", Value: " + n);
您可能感兴趣的文章:
大家感兴趣的内容
12345678910
最近更新的内容
常用在线小工具The page is temporarily unavailable
nginx error!
The page you are looking for is temporarily unavailable.
Please try again later.
Website Administrator
Something has triggered an error on your
This is the default error page for
nginx that is distributed with
It is located
/usr/share/nginx/html/50x.html
You should customize this error page for your own
site or edit the error_page directive in
the nginx configuration file
/etc/nginx/nginx.conf.The page is temporarily unavailable
nginx error!
The page you are looking for is temporarily unavailable.
Please try again later.
Website Administrator
Something has triggered an error on your
This is the default error page for
nginx that is distributed with
It is located
/usr/share/nginx/html/50x.html
You should customize this error page for your own
site or edit the error_page directive in
the nginx configuration file
/etc/nginx/nginx.conf.

我要回帖

更多关于 人别识脸 的文章

 

随机推荐