摘要:        
$('.showImg').click(function(){ var src = $(this).prevAll('input').val(); layer.open({ content:'', }); $("").attr("src", src).load(function() {//imgSrc是图片地址 var realWidth = this.width;//图片宽 ...    阅读全文
posted @ 2019-01-12 18:16
我是谁,我在做什么
阅读(344)
评论(0)
推荐(0)
        
            
        
        
摘要:        
$(this)是jquery对象,能调用jquery的方法,例如click(), keyup()。而this,则是html元素对象,能调用元素属性,例如this.id,this.value。例如假设已经使得this和$(this)都指向了input对象了,若要获得input的值,可以this.val    阅读全文
posted @ 2019-01-12 18:03
我是谁,我在做什么
阅读(162)
评论(0)
推荐(0)
        
 
                    
                     
                    
                 
                    
                
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号