本篇基于ng-route来讲下angular中的路由,路由功能主要是 $routeProvider服务 与 ng-view 实现。 ng-view的实现原理,是根据路由的切换,动态编译html模板——$compile(html)(scope)。 更多内容参考:Angularjs总结 本篇基于ng-r ...
分类:
Web程序 时间:
2017-02-08 18:23:06
阅读次数:
259
Git:1、新项目如果提交不了,可以设置.git/config文件,添加如下:[receive]denyCurrentBranch=ignore2、公钥、私钥生成后,需要配置configHost可以使用通配符,当ssh的时候如果server的URL能match上这里Host指定的值,则Host下面指定的HostName将被作为最终URL使用。同时该Hos..
分类:
其他好文 时间:
2017-02-07 17:09:12
阅读次数:
288
一般的编辑器都会默认Tab键为四格缩进,但是在python脚本中,Tab与直接4个tablespace空格是有区别的。 一般表现为报错信息如下: IndentationError: unindent does not match any outer indentation level 这说明我们在编 ...
分类:
编程语言 时间:
2017-02-06 15:52:37
阅读次数:
214
Memcached Memcached 是一个高性能的分布式内存对象缓存系统,用于动态Web应用以减轻数据库负载。它通过在内存中缓存数据和对象来减少读取数据库的次数,从而提高动态、数据库驱动网站的速度。Memcached基于一个存储键/值对的hashmap。其守护进程(daemon )是用C写的,但 ...
分类:
数据库 时间:
2017-02-05 15:18:01
阅读次数:
373
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-js ...
分类:
其他好文 时间:
2017-02-05 11:13:04
阅读次数:
682
This application's application-identifier entitlement does not match that of the installed application. These values must match for an upgrade to be a ...
分类:
移动开发 时间:
2017-02-03 12:17:02
阅读次数:
232
作业题目: 作业代码: 运行截图: 学会的东西: 正则表达式 ^……$开始和结束的标志;[0-9]表示0~9,{0,1}0或1,{0,9}0或1或2或……或9,当然也可以{4,4}就代表有4个;[]{}算一对,每队之间也可以加格式,比如我们要判断xxxx-xx-xx/xxxx-xx-x日期就可以写: ...
分类:
其他好文 时间:
2017-02-02 03:22:58
阅读次数:
225
class Solution { public: bool isMatch(string s, string p) { int m = s.size(), n = p.size(); vector<vector<bool>> dp(m + 1, vector<bool>(n + 1, false)) ...
分类:
其他好文 时间:
2017-02-01 21:43:15
阅读次数:
210
在利用XSL进行转换的过程中,匹配的概念非常重要。在模板声明语句 xsl:template match = ""和模板应用语句xsl:apply-templates select = "" 中,用引号括起来的部分必须能够精确地定位节点。具体的定位方法则在XPath中给出。 之所以要在XSL中引入XP ...
分类:
其他好文 时间:
2017-01-31 16:53:47
阅读次数:
1598