javascript - how to use function on Constructor, TodoList
问题描述
I want to display the results of the todolist action, from https://adminlte.io/docs/3.0/javascript/todo-list.html explain take it to use it just write it down
$('#my-todo-list').TodoList ({
onCheck: function(checkbox) {
console.log('check');
},
onUnCheck: function(checkbox) {
console.log('un check');
}
})
but the results of the action show nothing.
I tried to open the Constructor from the TodoList function, and displays the following functions, image
for that I tried writing
$('#my-todo-list').TodoList ({
check: function check(item) {
console.log('check');
},
unCheck: function unCheck(item) {
console.log('unCheck');
}
});
and still not display the results of these actions..
解决方案
推荐阅读
- vb.net - SqlConnection 类型未定义
- android - 布局不会一直到底部
- jquery - 用jQuery替换滚动上的哈希
- mysql - Meteor -mysql 方法不返回记录
- r - R & dplyr - 分组和添加新列
- python - 使用 Python 类型提示指定“全部”类型
- jquery - jQuery Datetimepicker Bootstrap 4 清除并检查空
- ruby - ruby 项目和 gemification 的最佳实践
- firebase - Cloud Firestore:我可以一次取消订阅所有快照侦听器吗?
- javascript - 未应用 bootstrap v4 上的“btn-outline-*”类