摘要: 在项目中需要去实现一个简单地单页面应用,不同的页面会ajax查询不同的参数返回不同的内容填充页面内,所以需要自己去实现类似页面路由的功能,经过思考大概有两种解决方案: 一、用HTML5 history pushState/replaceState属性实现页面的前进后退功能 实现思路大致如下: 1.当 阅读全文
posted @ 2017-08-01 16:53 cheer4chai 阅读(1360) 评论(0) 推荐(0) 编辑
摘要: 问题描述: Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the array [-2,1,-3,4 阅读全文
posted @ 2017-08-01 16:53 cheer4chai 阅读(883) 评论(0) 推荐(0) 编辑