摘要: 个人见解:1.动态规划实现了把问题拆分成多个子问题,然后求解,子问题有解后,问题自然迎刃而解;2.动态规划实现了子问题的状态的迁移,保存每个状态值,递推出答案,但不记录每种状态的求解方法。动态规划相信大家都知道,动态规划算法也是新手在刚接触算法设计时很苦恼的问题,有时... 阅读全文
posted @ 2018-03-28 15:01 时光吹老了好男孩 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 1、java智能提示(1). 打开Eclipse,选择打开" Window - Preferences"。(2). 在目录树上选择"Java-Editor-Content Assist",在右侧的"Auto-Activation"找到"Auto Activation ... 阅读全文
posted @ 2018-03-28 11:24 时光吹老了好男孩 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 1.安装flash,通过与flash交互,实现跨域,但此方法太麻烦,已经很少使用2.二是通过在同源域名下架设一个代理服务器来转发,JavaScript负责把请求发送到代理服务器:'/proxy?url=http://www.sina.com.cn'代理服务器再把结果返... 阅读全文
posted @ 2018-03-28 09:35 时光吹老了好男孩 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 实现ajax依靠xmlHttpRequest对象var request;if (window.XMLHttpRequest) { request = new XMLHttpRequest();} else { request = new ActiveXOb... 阅读全文
posted @ 2018-03-28 09:30 时光吹老了好男孩 阅读(80) 评论(0) 推荐(0) 编辑
摘要: var fileInput = document.getElementById('test-image-file'), info = document.getElementById('test-file-info'), preview = docum... 阅读全文
posted @ 2018-03-28 01:59 时光吹老了好男孩 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 插入DOM把JavaScript添加到的最后一项:var js = document.getElementById('js'), list = document.getElementById('list');list.appendChild(js);var... 阅读全文
posted @ 2018-03-28 01:49 时光吹老了好男孩 阅读(96) 评论(0) 推荐(0) 编辑
摘要: ES6标准新增了新函数:Arrow Function 箭头函数。定义:x=>x*x;相当于function(x){ return x*x;}左边是参数,右边是函数内容。// 两个参数:(x, y) => x * x + y * y// 无参数:() => 3.1... 阅读全文
posted @ 2018-03-28 01:46 时光吹老了好男孩 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 1.map()函数2.reduce函数3.filter函数4.sort函数例子:function pow(x) { return x * x;}var arr = [1, 2, 3, 4, 5, 6, 7, 8, 9];var results = arr.map... 阅读全文
posted @ 2018-03-28 00:56 时光吹老了好男孩 阅读(129) 评论(0) 推荐(0) 编辑
摘要: //导出表头样式 public static WritableCellFormat HeadCss(HttpServletResponse response,HttpServletRequest request) throws Exception{ /... 阅读全文
posted @ 2018-03-27 11:49 时光吹老了好男孩 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 1.js允许传入任意个参数而不影响函数的调用,因此传入的参数比定义的参数多没有问题。2.js有一个关键字arguments,它只在函数内部起作用,并且永远指向当前函数的调用者传入的所有参数,arguments类似Array,但它不是一个Array。function f... 阅读全文
posted @ 2018-03-26 00:52 时光吹老了好男孩 阅读(112) 评论(0) 推荐(0) 编辑