摘要: ``` 贷款计算器 Enter Loan Data: Loan Balance,Cumulative Equity,and Interest Payments Amount of the loan ($): ... 阅读全文
posted @ 2020-04-25 18:02 青柚 阅读(563) 评论(0) 推荐(0) 编辑
摘要: ``` function factoria(n){ var product = 1; whlie(n > 1 ){ product *= n; n--; } return product; } ``` 阅读全文
posted @ 2020-04-25 11:07 青柚 阅读(404) 评论(0) 推荐(0) 编辑
摘要: ``` var points = [{x:0,y:0},{x:1,y:1}]; points.dist = function() { var p1=this[0]; var p2=this[1]; var a = p2.x-p1.x; var b = p2.y-p1.y; return Math.sqrt(a*a+b*b); }; points.dist() ``` 阅读全文
posted @ 2020-04-25 10:02 青柚 阅读(3520) 评论(0) 推荐(0) 编辑