使用jQuery查找元素的類型 - finding the type of an element using jQuery

問題:

In jQuery, if I have a reference to an element, how can I determine what kind of element it is, for example, an input or an dropdown? 在jQuery中,如果我有一個元素的引用,我如何確定它是什麼類型的元素,例如,輸入或下拉列表? Is there any way to find out? 有沒有辦法找出來?

Duplicate: 重複:

How can I determine the element type of a matched element in jQuery? 如何在jQuery中確定匹配元素的元素類型?


解決方案:

參考一: https://en.stackoom.com/question/2YH4
參考二: https://stackoom.com/question/2YH4
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章