标签:记录 his utf-8 offset sharp connector replace int Fix
fix_jsPlumb_offset(left) { var lines = document.getElementsByClassName("jtk-connector"); var dots = document.getElementsByClassName("jtk-endpoint"); this._fix_left(lines, left); this._fix_left(dots, left); }, _fix_left(arr, left) { for (var i = 0; i < arr.length; i++) { var obj = arr[i]; var origin_left = obj.style.left.replace(/px/, ""); obj.style.left = (parseInt(origin_left) + parseInt(left)) + ‘px‘; } }
标签:记录 his utf-8 offset sharp connector replace int Fix
原文地址:https://www.cnblogs.com/laozuan/p/13559325.html