drduan / minggeJS

857 stars 143 forks source link

width/height/left/top 方法当传入的数字有小数位时,将导致该操作失败(即无效果), 继续打脸 #238

Open xqin opened 8 years ago

xqin commented 8 years ago

测试代码:

        <div id="test" style="height:30px;">hello</div>
        <script src="MingGe_1.9.6.3.js"></script>
        <script>
            var t = $('#test');
            console.log(t.height());//30
            t.height(99.999);
            console.log(t.height());//30
        </script>
mingge8888 commented 8 years ago

numEndExpr = /^[0-9]+$/,

这个错误,我认了

DD-L commented 8 years ago

明哥,帅