angularjs ค้นหาจาก json array ได้มัย้ค่ะ
Moderator: mindphp
- thatsawan
- PHP VIP Members
- Posts: 27962
- Joined: 31/03/2014 10:02 am
- Contact:
angularjs ค้นหาจาก json array ได้มัย้ค่ะ
คือ ตอนแสดงผลเราเก็บข้อมูลจาก Get มาให้ตัวแปร srcop ไว้เเล้ว ที่นี่ต้องการให้ เมื่อคลิก ปุ๋ม เเบล้วส่งค่า มาค้นหา เหมือนกับทำ edit เเล้วต้องการให้แสดงข้อมูล เเต่ตอนนี้ทำได้คือต้องเอาไอดี หรือ คำนั้นส่ง post ไป ค้นหาที่ server ต้องการจะเปลี่ยนจาก ค้นหา server เเต่มาค้นกับตัวแปร array ที่เราเก็บไว้เเล้ว
- mindphp
- ผู้ดูแลระบบ MindPHP
- Posts: 26603
- Joined: 22/09/2008 6:18 pm
- Contact:
Re: angularjs ค้นหาจาก json array ได้มัย้ค่ะ
ลองประยุคกับ filter
ตามตัวอย่างนี้
https://hello-angularjs.appspot.com/searchtable
https://docs.angularjs.org/api/ng/filter/filter
ตามตัวอย่างนี้
https://hello-angularjs.appspot.com/searchtable
https://docs.angularjs.org/api/ng/filter/filter
ติดตาม VDO: http://www.youtube.com/c/MindphpVideoman
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
-
- Similar Topics
- Replies
- Views
- Last post
-
-
แจ้ง error วนลูป array ซ้อน array ค่าที่ส่ง json_encode "Json -> PHP"
by thatsawan » 06/07/2014 2:52 pm » in Programming - PHP - 4 Replies
- 2679 Views
-
Last post by thatsawan
07/07/2014 10:27 am
-
-
-
AngularJs : วิธีแก้ไข XMLHttpRequest cannot load ส่ง Json มาแแต่ไม่สามารถใช้งานได้ใน ng
by thatsawan » 13/06/2016 9:43 pm » in Jquery & Ajax Knowledge - 0 Replies
- 1486 Views
-
Last post by thatsawan
13/06/2016 9:43 pm
-
-
-
คำสั่งเช็คค่าว่างในตัวแปล array AngularJS
by thatsawan » 16/06/2016 4:09 pm » in JavaScript & Jquery Ajax - 2 Replies
- 917 Views
-
Last post by thatsawan
16/06/2016 4:29 pm
-
-
-
AngularJs : วิธีแก้ไข Cross-Origin Request Blocked ส่ง Json มาแแต่ไม่สามารถใช้งานได้ใน ng
by thatsawan » 12/06/2016 12:25 am » in Jquery & Ajax Knowledge - 0 Replies
- 1079 Views
-
Last post by thatsawan
12/06/2016 12:25 am
-
-
-
AngularJs : ตัวอย่าง ค้นหา ด้วย AngularJS Ajax เเละ PHP
by thatsawan » 31/05/2016 3:55 pm » in Jquery & Ajax Knowledge - 0 Replies
- 1007 Views
-
Last post by thatsawan
31/05/2016 3:55 pm
-
-
-
AngularJs : เริ่มต้นการเขียน AngularJs เเละวิธีการติดตั้ง
by thatsawan » 23/04/2016 11:24 am » in Jquery & Ajax Knowledge - 0 Replies
- 964 Views
-
Last post by thatsawan
23/04/2016 11:24 am
-
-
-
presser ข้อมูล Json จากเว็บ url มาใช้งานเป็น dict ใน Python ด้วย urllib2,json
by mindphp » 08/02/2017 7:18 am » in Python Knowledge - 0 Replies
- 661 Views
-
Last post by mindphp
08/02/2017 7:18 am
-
-
- 0 Replies
- 517 Views
-
Last post by thatsawan
23/04/2016 3:22 pm
Who is online
Users browsing this forum: No registered users and 5 guests