JavaScript ã§ã¤ã³ã¯ãªã¡ã³ã¿ã« grep æ¤ç´¢ JavaScript㧠grep æ¤ç´¢ããããã¨æãã次ã®ãããªã³ã¼ããæ¸ããã function grep (pattern) { try { var regex = new RegExp(pattern, "i"); var spans = document.getElementsByTagName('span'); var length = spans.length; for (var i = 0; i < length; i++) { var e = spans[i]; if (e.className == "line") { if (e.innerHTML.match(regex)) { e.style.display = "inline"; } else { e.style.display = "none"; } } }
{{#tags}}- {{label}}
{{/tags}}