Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Flex µÄArrayµÄEveryº¯ÊýÔõôʹÓã¿

Flex µÄArrayµÄEveryº¯ÊýÔõôʹÓã¿

±ÈÈçÎÒÑéÖ¤Êý×éÖÐÊÇ·ñ°üº¬Ò»¸öÖµ£¬Õâ¸öÖµÊDZäÁ¿£¬²»Êdz£Á¿£¬
Everyº¯ÊýÔõôд£¿
http://blog.minidx.com/2008/06/19/912.html

¿ÉÒԲο¼

ÒýÓÃ
http://blog.minidx.com/2008/06/19/912.html

¿ÉÒԲο¼


²»ÊÇÕâô¼òµ¥µÄÓ÷¨£¬
ÔÚµ÷ÓÃEveryº¯ÊýµÄʱºò£¬Ôõô´«µÝ²ÎÊý£¿


ÒýÓÃ
ÒýÓÃÂ¥Ö÷ zengjd µÄ»Ø¸´:
Flex µÄArrayµÄEveryº¯ÊýÔõôʹÓã¿

±ÈÈçÎÒÑéÖ¤Êý×éÖÐÊÇ·ñ°üº¬Ò»¸öÖµ£¬Õâ¸öÖµÊDZäÁ¿£¬²»Êdz£Á¿£¬
Everyº¯ÊýÔõôд£¿


ÕâÑùµÄÐèÇóÓ¦¸ÃʹÓà indexOf·½·¨¶ø²»ÊÇEvery
XML codepackage {
import flash.display.Sprite;
public class Array_indexOf extends Sprite {
public function Array_indexOf() {
var arr:Array = new Array(123,45,6789);
arr.push("123-45-6789");
arr.push("987-65-4321");

var index:int = arr.indexOf("123");
trace(index); // -1

var index2:int = arr.indexOf(123);
trace(index2); // 0
}
}
}


Èç¹ûÊý×éÖдæµÄÊÇÒ»¸ö¶ÔÏó¡£
ÎÒÐèÒªÑéÖ¤ÊÇ·ñijһ¸ö¶ÔÏó°üº¬Ò»¸öÌØÊâµÄÊôÐÔÖµ£¬
±ÈÈ磺
var obj:object =new Object();
obj.Name="a"
obj.n=132;
arr.Push(obj),

arr.indexOf( 123);
IndexOf²¢²»ÊÊÓá£

²ÎÊý²»ÄÜͨ¹ýÒ»¸öÈ«¾Ö±äÁ¿À´´«Ã´£¬ÎªÊ²Ã´Ò»¶¨ÒªÔÚsome/Everyº¯ÊýÖ


Ïà¹ØÎÊ´ð£º

flex Á¬½ÓÊý¾Ý¿âʧ°Ü£¿£¿

ÎÒÊǰ´  http://hi.baidu.com/dapao98301/blog/item/eff43ed557b44509a08bb75f.html ¸øÎÒµÄÌáʾ×öµÄ£¬ÏÖÔÚ×ÜÊÇ

<mx:RemoteObject id="getData" destination="dataService1" res ......

flexµÄtitleWindow£¨Ä£Ì¬¶Ô»°¿ò£©×îС»¯Àý×Ó

×î½ü¹«Ë¾ÓÃflex×öÒ»¸öÏîÄ¿£¬flexµÄtitleWindow£¨Ä£Ì¬¶Ô»°¿ò£©×îС»¯Ôõô×ö³öÀ´£¿×îºÃÓÐÍêÕûµÄ£¬ÄÜÖ±½ÓÔËÐв¢¿´µ½½á¹ûµÄÀý×Ó£¬hello world¼¶±ðµÄÒ²Ðа¡£¿

Ì«°ôÁË£¡YOU ARE VERY GOOD


ºÇºÇ ²»´í ѧϰÁË!

......

flex×ÀÃæÓ¦ÓóÌÐò

ÇëÎʸßÊÖ£¬flex×ÀÃæÓ¦ÓóÌÐò¿ÉÒÔʹÓÃBlazeDS¿ò¼ÜÂð? ÎÒÊÔÁËÒ»ÏÂûÓгɹ¦!
Ó¦¸ÃÊÇ¿ÉÒԵġ£
²»³É¹¦Ìáʾʲô?


¿ÉÒÔ£¬²»¹ýÔÚserviceÖбØÐëÊÖ¶¯ÉèÖÃendpointÊôÐÔ¡£

ÎÒ×öµÄʵÀýÊÇflex¹Ù·½ÉϵĵÚÒ»¸öÀý×Ó£¬µ÷ ......

flexÖж¯Ì¬µ÷ÓÃremoteobjectµÄÎÊÌâ

ÎÒµÄJAVA¶Ë·µ»ØµÄÊÇÒ»¸öLIST,Èç¹ûÓÃÏÂÃæµÄ·½·¨,¿ÉÒÔÊÇÄÜÔÚÒ³Ãæ¼ÓÔØÊ±,µÃµ½·þÎñ¶Ë·µ»ØµÄÊý¾ÝµÄ,¼´: 
?xml version="1.0" encoding="utf-8"?> 
<mx:Application xmlns:mx=&qu ......

Flex 3 µ÷ÊÔ±¨´í




µ÷ÊÔµÄʱºò£¬³öÏÖÕâÖÖÇé¿ö£¬Ó¦¸ÃÔõô½â¾ö£¿
Çë´óϺָ½Ì¡£



°ÑÕâ¸ö¶ÏµãÈ¥µô¾ÍÐÐÁË¡£ ÔÚËüÉÏÃæË«»÷.

ÎÒ¾ÍÊÇÏëÉèÖÃÕâ¸ö¶Ïµã¡£


Äܲ»ÄÜ˵µÄ¾ßÌåµã£¿Ð»Ð»¡£


È¥µôÁËËùÓеĶϵ㣬ȻºóÖØ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ