本文介紹了jQuery 選擇器 - 查找沒有指定屬性的對象的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!
問題描述
我在一個頁面上有幾個對象,我想只在其中一些對象上使用 jQuery 執(zhí)行操作——那些沒有指定屬性的對象.所以:
I have several objects on a page and I want to perform an operation using jQuery only on some of them - the ones that don't have a specified attribute. So:
在javascript中我會:
and in javascript I would have:
這將隱藏所有具有 style
屬性的元素.但是如果我想隱藏那些 without 它,我的選擇器應(yīng)該是什么樣子?
that would hide all elements with a style
sttribute. But if I want to hide the ones without it, how should my selector look like?
推薦答案
這篇關(guān)于jQuery 選擇器 - 查找沒有指定屬性的對象的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!
【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!