随笔分类 -  js

摘要:1.mounted 与 methods 与 computed 与 watched区别 From:https://blog.csdn.net/qinlulucsdn/article/details/80473382 首先讲一下vue的生命周期 beforecreate : 举个栗子:可以在这加个loa 阅读全文
posted @ 2019-01-07 09:46 Ace001 阅读(3184) 评论(2) 推荐(2)
摘要:var dic={A:"AA",B:"BB",C:"CC"} //不能length去for循环(length:undefined) dic["D"]="DD"; //新增键值对 var tmp=dic["D"]; //通过key获取值 for (var key in dic) { var item 阅读全文
posted @ 2019-01-04 19:06 Ace001 阅读(58883) 评论(0) 推荐(8)
摘要:drawLineBox(new THREE.Vector3(100, 50, 0), new THREE.Vector3(200, 100, 100)); function drawLineBox(start, end) { //开始点用cube标出来方便观察 geometry = new THRE 阅读全文
posted @ 2018-10-18 13:13 Ace001 阅读(2919) 评论(0) 推荐(0)
摘要:文字作为纹理贴图 From:http://www.linhongxu.com/post/view?id=222 这里可以使用canvas作为纹理贴图,Three为我们提供里CanvasTexture 这样我们就可以利用canvas画上文字或者图形,用来填充纹理贴图。 From:https://www 阅读全文
posted @ 2018-10-13 21:04 Ace001 阅读(9382) 评论(0) 推荐(3)
摘要:0原理 根据坐标点生成每2点之间的距离的矩阵,再将起点,终点,矩阵传入算法即可求出路径 1.后台生成矩阵 名词解释和下图参考:https://blog.csdn.net/csdnxcn/article/details/80057574 //allVertices所有三维坐标点的集合 //lines 阅读全文
posted @ 2018-10-12 09:27 Ace001 阅读(4008) 评论(0) 推荐(0)
摘要:From:https://blog.csdn.net/winy_lm/article/details/60959751 ajax async设为false即同步调用 //去支付function gotoPay(param) { $.ajax({ type: "post", url: "/xxxx/x 阅读全文
posted @ 2018-09-19 16:17 Ace001 阅读(842) 评论(0) 推荐(1)
摘要:1.表单取值/赋值公共方法 2.调用 3.生成下拉框 调用: //参数:数据源地址,显示字段,取值字段,下拉框id,默认选中值,开头追加数据,成功回调 createSelect("api/Dict/GetProvinces", "Name", "Id", "selProvince", -1, {Id 阅读全文
posted @ 2018-02-05 10:35 Ace001 阅读(3115) 评论(1) 推荐(1)
摘要:http://blog.csdn.net/sinat_29412671/article/details/53690658 阅读全文
posted @ 2018-01-09 15:10 Ace001 阅读(234) 评论(1) 推荐(0)
摘要:转自:http://blog.csdn.net/educast/article/details/52775559 function JSONToExcelConvertor(JSONData, FileName, ShowLabel) { //先转化json var arrData = typeof 阅读全文
posted @ 2017-11-13 20:06 Ace001 阅读(4639) 评论(1) 推荐(0)
摘要:<style> .ms-controller{ visibility: hidden; /*防止出现{{x}}等插值表达式*/ } </style> function doClick(liObj) { alert(liObj.attributes["myAttr"].value);} setTime 阅读全文
posted @ 2017-02-23 17:08 Ace001 阅读(2258) 评论(0) 推荐(0)
摘要:a.html有个iframe载入b.com/login.html,当login完成时通知a.html页面登录完成并传递UserName 1.a.html 监听消息 2.iframe内嵌页login.html postMessage var ifr = window.parent; //获取父窗体 v 阅读全文
posted @ 2016-11-23 14:06 Ace001 阅读(2111) 评论(0) 推荐(0)
摘要:1.列表数据绑定 doClick:function(data) { alert(data.name); console.log(data); } From:http://www.cnblogs.com/xuejianxiyang/p/5554146.html 阅读全文
posted @ 2016-06-02 19:16 Ace001 阅读(3108) 评论(0) 推荐(0)
摘要:<!DOCTYPE html><html><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="initial-scale=1.0, us 阅读全文
posted @ 2016-03-16 10:48 Ace001 阅读(12913) 评论(0) 推荐(2)
摘要:1 2 3 4 5 6 16 17 18 19 20 21 Needed Properties: sender.offsetTop & sender.offsetLeft & sender.offsetHeight22 23 24 25 原文地址:... 阅读全文
posted @ 2015-11-12 18:48 Ace001 阅读(8047) 评论(0) 推荐(1)
摘要:ajax的post注意事项注意post请求的Content-Type为application/x-www-form-urlencoded,参数是在请求体中,即上面请求中的Form Data(后台通过Request.Form["name"]来获取)。如果Content-Type为application... 阅读全文
posted @ 2015-10-16 14:59 Ace001 阅读(7193) 评论(2) 推荐(1)