t.substring(),结果是字符串,不是dom节点吧?
【 在 cowell (紫禁飞狐) 的大作中提到: 】
: <td>的title里摆放了一些字串。如果字串里含有特定的字串,想要高亮。
: $('.pinmap td').filter(function(){var t = $(this).attr("title"); return t.substring(t.lastIndexOf("Functional Block ")).indexOf("Test")>=0;}).css("background-color","#FF0");
: 各种调试,死活不工作。
: ...................
--
FROM 58.49.206.*