摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <script type="text/javascript"> for(var i = 1; i < 5; i ++){ for(var 阅读全文
posted @ 2016-07-04 11:32 Small_Potato_IT 阅读(2659) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <script type="text/javascript"> var num = ""; var nums = []; var a = 阅读全文
posted @ 2016-07-04 11:08 Small_Potato_IT 阅读(1460) 评论(0) 推荐(0) 编辑
摘要: <!--方法一, 删选法,通过排除有倍数关系的数--><script type="text/javascript"> var arr = []; for(var i = 2; i < 200; i ++){ for(var j = 2 * i; j < 200; j += i){ arr[j] = 阅读全文
posted @ 2016-07-04 10:08 Small_Potato_IT 阅读(353) 评论(0) 推荐(0) 编辑
摘要: 方法一: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <script type="text/javascript"> var num = prompt("请输入你所要分解因数的正整 阅读全文
posted @ 2016-07-04 08:32 Small_Potato_IT 阅读(1019) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <script type="text/javascript"> var arrFactor = []; var l = 0; docum 阅读全文
posted @ 2016-07-04 08:31 Small_Potato_IT 阅读(732) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <script type="text/javascript"> var num1 = 1; var num2 = 0; var sum 阅读全文
posted @ 2016-07-04 08:29 Small_Potato_IT 阅读(3659) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <script type="text/javascript"> var num = []; var j = 0; for(var i = 阅读全文
posted @ 2016-07-04 08:28 Small_Potato_IT 阅读(1365) 评论(0) 推荐(0) 编辑