minggeJS icon indicating copy to clipboard operation
minggeJS copied to clipboard

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

Open xqin opened this issue 8 years ago • 2 comments

测试代码:

        <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>

xqin avatar Apr 10 '16 09:04 xqin

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

这个错误,我认了

mingge8888 avatar Apr 10 '16 17:04 mingge8888

明哥,帅

DD-L avatar Apr 11 '16 05:04 DD-L