ko.mapping is undefined

假如想象 提交于 2019-11-30 22:46:39

问题


im following this example http://jsfiddle.net/rniemeyer/badZb/ . I just copy and paste the exact code into a sample application and it gave me this error : "ko.mapping is undefined" . Anyone know whats happening? My ko.observable and dependentObservable are working great, is just that ko.mapping is not working.

FYI : The knockout.js version is 2.0 and Jquery 1.7.1


回答1:


As the mapping plugin is exactly that, a plugin, it is not included in the core library.

You need to include the mapping plugin separately. You can find it on GitHub. Just make sure you include it after including the core Knockout library.



来源:https://stackoverflow.com/questions/9178544/ko-mapping-is-undefined

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!