jQuery中siblings无效
不知道为什么报错
todolist.js:24 Uncaught TypeError: $(…).siblings(…).arrt is not a function
at HTMLInputElement. (todolist.js:24)
at HTMLOListElement.dispatch (jquery.min.js:3)
at HTMLOListElement.r.handle (jquery.min.js:3)
代码如下:
$(function(){
load()
$(’#title’).on(‘keydown’,function(event){
if(event.keyCode === 13){
var local = getData();
console.log(local);
local.push({title: $(this).val() , done:false});
saveData(local);
load();
}
})
KaTeX parse error: Expected '}', got 'EOF' at end of input: … console.log((this));
var index = $(this).attr("id");
console.log(index);
data.splice(index,1);
saveData(data);
load();
})
$("ol,ul").on("click","input",function(){
var data = getData();
var