其中,$parse是手动解析服务。 使用自定义指令,返回一个右击函数,$apply监视$scope的变化。 这是$parse服务的$get属性,可以看出,当表达式为字符串的时候,进行一个手动的解析。如果是函数,直接返回。 ...
分类:
其他好文 时间:
2017-05-10 15:43:48
阅读次数:
163
参考:http://design-patterns.readthedocs.io/zh_CN/latest/creational_patterns/builder.html ...
分类:
编程语言 时间:
2017-05-10 11:21:23
阅读次数:
190
说明: 本文主要内容参考: Mac下PHP连接MySQL报错"No such file or directory"的解决办法, 并进行个人补充 1. 运行环境: Mac OS X 10.11.4 (Mac 已经自带 Apache, PHP) 2. 相关文件夹: /etc/apache2/ ##Apa ...
分类:
数据库 时间:
2017-05-10 00:12:24
阅读次数:
443
3.2节我们已经运行了一个Lucene实现检索的小程序,这一节我们将以这个小程序为例,讲一下Lucene检索的基本步骤,同时介绍关键词高亮显示和分页返回结果这两个有用的技巧。 一、Lucene检索的基本步骤 1 import java.nio.file.Paths; 2 import java.io ...
分类:
Web程序 时间:
2017-05-09 23:15:39
阅读次数:
355
注:需先上传各安装包至服务器。#!/bin/bash #! auto install lnmp #! 安装依赖环境 yum -y groupinstall "X Software Development" yum -y install libxml2 libxml2-devel bzip2-deve... ...
分类:
其他好文 时间:
2017-05-09 23:15:31
阅读次数:
287
由于semantic的使用,我们有理由相信 vertex shader的output 和 pixel shader的input是按照semantic来匹配的,而跟传入顺序无关。印象dx9时代是这样。 虽然习惯上使用共用的sruct (VS_OUTPUT)来保证senamtic修改的同步,便于维护,但 ...
分类:
其他好文 时间:
2017-05-09 20:44:26
阅读次数:
297
转载自:http://www.cnblogs.com/jerry-yin/articles/4812012.html 今天研究了一下基于RFS自动化测试框架实现HTTP的POST/GET请求发送执行自动化测试的过程。 首先还是要先感谢万能的google(PS:因为在百度中完全无法找到相关信息),同时 ...
分类:
其他好文 时间:
2017-05-09 18:19:53
阅读次数:
491
如何获取手指点击的cell位置: 1,首先创建一个长按(可以是点击或者其他手势) UILongPressGestureRecognizer * longgr = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@sel ...
分类:
移动开发 时间:
2017-05-09 16:54:49
阅读次数:
275
1、概念 canvas一般就是用来绘制图像的 canvas一般就是用来绘制图像的 2、基本知识 上下文对象 var canvas = doucment.getElementById("canvas"); var ctx = canvas.getContext("2d"); ctx.fillStyle ...
分类:
其他好文 时间:
2017-05-09 16:53:59
阅读次数:
208
public void SetWindowRegion() { System.Drawing.Drawing2D.GraphicsPath FormPath; FormPath = new System.Drawing.Drawing2D.GraphicsPath(); Rectangle rect ...