📜  在 js 中搜索内容 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:27.553000             🧑  作者: Mango

代码示例1
// Programmed by RIMON, the programming king!
const $_ = {
  e:function(e) {return document.querySelector(e)},
  ea:function(e) {return document.querySelectorAll(e)},
}
const si = $_.e('#search-todos');
si.oninput=function(){_search_(this.value)};
function _search_(v) {
  var v_ = v.toLowerCase();
  const tds = $_.ea('#lists span');
  for(var i=0;i