您好我正在使用以下代码通过 jquery 应用 css 的多个属性。我的代码是
$("div:contains('Awais')").css( {text-decoration : 'underline', cursor : 'pointer'} );
我收到 javascript 错误
missing : after property id
$("div:contains(John)").css( {text-dec...: 'underline', cursor : 'pointer'} );
但是当我移除text-decoration
财产时,错误消失了。这段代码有什么问题