且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

knockout.js嵌套的foreach访问外部循环属性

更新时间:2022-03-12 04:06:25

您可以使用 $ parent 来访问一个范围级别。因此,从内部循环中,您可以使用 parent 来访问当前循环在 graduationDateRows

You can use $parent to access one scope level up. So, from your inner loop you can use parent to access the current item being looped on in your graduationDateRows