My New Hugo Site
Home
This Blog
All Tags
All Sections
All Posts
Knockout.js 自訂範本
Aug 29, 2013
1 min read
Knockout
Knockout
template是用來把複雜或是可重覆使用的輸出格式,獨立出來的一個功能 使用name來指定範本的id,data用來指定傳入範本的資料,as為資料的別名 再配合foreach、if等流程控制來輸出資料
Sharing is caring!
Please enable JavaScript to view the
comments powered by Disqus.
Sharing is caring!