+ -
当前位置:首页 → 问答吧 → Angular.js 少少问题

Angular.js 少少问题

时间:2014-07-16

来源:互联网

网上越黎越多讲呢只野,想认识下。
见网上有个 demo 讲 filter, 但有点唔明.

Kay Robinson 25
Keith Battle 40
Watts Scott 38
Ruiz Bradford 29
Hopkins Burnett 28
Finch Contreras 35

View Source, 佢呢part 系咁:
<p><strong>依据关键字「过滤」资料 ( filter all )</strong></p>
<input type="text" ng-model="keyword" />
<ul>
<li ng-repeat="d in data | filter:keyword">
{{d.name}} {{d.age}}
</li>
</ul>
<hr />


我打 att, 佢出:

Keith Battle 40
Watts Scott 38
Hopkins Burnett 28 <-- 何解这个都符合

打 ins, 佢出:

Kay Robinson 25
Ruiz Bradford 29 <-- 何解这个都符合
Hopkins Burnett 28


会否 Angular.js filter 有某D 特性小弟忽略左?

作者: laputafish   发布时间: 2014-07-16

filter all VS filter name only

其他FIELD 包含了 INS

[ 本帖最后由 antiaa 於 2014-7-4 06:04 PM 编辑 ]

作者: antiaa   发布时间: 2014-07-16

引用:原帖由 antiaa 於 2014-7-4 06:02 PM 发表
filter all VS filter name only

其他FIELD 包含了 INS
搵到了,睇番佢个资料来源,除了name及age,仲有好多fields.

thx

作者: laputafish   发布时间: 2014-07-16

what's the different between it and createJS?

作者: computak   发布时间: 2014-07-16

createjs is diff thing

作者: antiaa   发布时间: 2014-07-16

you are major in Delphi?

you are not study in HK ?

作者: antiaa   发布时间: 2014-07-16

By the way I didn't use angular.js. Instead I'm using backbone + marionette, I think they are served the same purpose. Currently, I'm develop a mobile app using that. A lot of new stuff need to read and understand.

Let see if we can help each other.

作者: antiaa   发布时间: 2014-07-16

引用:原帖由 antiaa 於 2014-7-5 11:32 PM 发表
By the way I didn't use angular.js. Instead I'm using backbone + marionette, I think they are served the same purpose. Currently, I'm develop a mobile app using that. A lot of new stuff need to read a ...
Delphi系由Windows 3.1已经用, 用到Delphi 7,之后都无project再用佢,去到Delphi XE,只系间中自己用黎写少少野畀自己用.

暂时主要研究 node.js, angular.js, laravel, jquery mobile, 等等.
做IT都几攰,D新架构不断咁出,跟本到死果日都学唔完,好彩系自己兴趣.

作者: laputafish   发布时间: 2014-07-16

node.js 其实重有咩用?

作者: antiaa   发布时间: 2014-07-16

引用:原帖由 antiaa 於 2014-7-6 12:31 AM 发表
node.js 其实重有咩用?
node.js 系server-side果边.
即系server都用埋javascript去写.

佢过人之处系好方便用到 websocket.
透过websocket,可以server 及client 互相trigger 对方某个event及传送资料.
如果用php或jsp唔系做唔到,但要搞好多野.

作者: laputafish   发布时间: 2014-07-16