关于jq contains()

212 阅读1分钟

console.log($('h3:contains("'+val+'")'))

只接受字符串,不接受变量。