问题来源于leetcode上的两道题 Path Sum I && II,分别写了两个dfs. void dfs(TreeNode node , int sum , ArrayList<Integer> curPath) void dfs(TreeNode node , int sum , boolean ifExist) 问题:在1号中我可以在方法中修改curPath,在结束函数调用时,变量修改仍然生效. 在2号问题中,我即使在函数中修改了ifExist,结束函数调用时,变
总结: 1.mybaits配置工2方面: i行为配置,如数据源的实现是否利用池pool的概念(POOLED – This implementation of DataSource pools JDBC Connection objects to avoid the initial connection and authentication time required to create a new Connection instance.This is a popular approach fo
angularjs中封装了一个$http服务,用来请求远程资源 参见:HTTP API 其中封装过的$http.post和$http.get使用起来比较方便 后台是php,用$_POST['name']接收,一直接收不到代码,甚是奇怪 查阅文章所知,原来angular的$http服务和jquery的不一样 原文: By default, jQuery transmits data using Content-Type: x-www-form-urlencoded and the familiar