var domObj = document.getElementById("demo"); var $Obj = $("#demo"); DOM转jQuery: 用$()把dom对象括起来$domObj = $(domObj); jQuery对象转dom对象:$Obj[0]或$Obj.get(0)
时间: 2024-10-31 17:51:22
var domObj = document.getElementById("demo"); var $Obj = $("#demo"); DOM转jQuery: 用$()把dom对象括起来$domObj = $(domObj); jQuery对象转dom对象:$Obj[0]或$Obj.get(0)