摘要: 1 distance: function (p1, p2) { 2 var result = Math.sqrt(Math.pow(Math.abs(p1.x - p2.x), 2) + Math.pow(Math.abs(p1.y - p2.y), 2)); 3 return result; 4 阅读全文
posted @ 2020-12-17 08:52 Coderlhx 阅读(781) 评论(0) 推荐(1) 编辑
摘要: 1 /** 2 * 获取两条相交线的交点坐标信息 3 * @param {any} 线1 4 * @param {any} 线2 5 * @param {any} 回调函数 6 */ 7 intersect: function (geometry_r1, geometry_r2, func) { 8 阅读全文
posted @ 2020-12-17 08:51 Coderlhx 阅读(864) 评论(0) 推荐(1) 编辑
摘要: 本demo基于bootstrap-prettyfile.js html代码如下: 1 <div id="file-pretty"> 2 <form id="ui-form-file-upload" name="form-file-upload" method="post" target="ui-if 阅读全文
posted @ 2020-12-17 08:50 Coderlhx 阅读(189) 评论(0) 推荐(0) 编辑