/* * Object factory */function
objectFactory(jsonObj){ function objectEntity(){ } if(typeof jsonObj ==
"object"){ for(var index in jsonObj){ objectEnt...
分类:
Web程序 时间:
2014-05-19 22:39:02
阅读次数:
472
parameter 属性赋值例如要检索用户表中状态为 1 (status=1) 并且电子包含 163
的用户,当提交表单时(注意表单是 GET 方式提交),形成的 URL
地址大致如下:http://www.5idev.com/index.php/Index/search/status/1/emai...
分类:
Web程序 时间:
2014-05-19 10:59:04
阅读次数:
307
Given an array of non-negative integers, you
are initially positioned at the first index of the array.Each element in the
array represents your maximu...
分类:
其他好文 时间:
2014-05-19 08:23:07
阅读次数:
223
当我们使用index更新document的时候,首先读取原始的document,作出修改,然后一下在把新的document
index到ES中。最后一次的操作因该是成功的,也就是说最近的一次index执行的document应该更新到ES,如果同时也有其他人在执行这个操作,那么他们的修改将会是丢失的。...
分类:
其他好文 时间:
2014-05-17 15:25:55
阅读次数:
308
server{if(!-e$request_filename){rewrite^(.*)$/index.phplast;}}如果if没有放在location时,在做memc缓存时,在错误日志里会提示以下信息2014/05/1210:45:51[error]11520#0:*325726srcache_fetch:cachesenttruncatedresponsebodywhilesendingtoclient,client:192.168.3.124,..
分类:
其他好文 时间:
2014-05-15 19:02:44
阅读次数:
350
jquery对select下拉框的操作总结。。。1、通过索引值去设置select中的option的value和textvarindex=1;varval="该改为的值";$("#selectIdoption:eq("+index+")").attr("selected",true);$("#selectIdoption:selected").val(val);$("#selectIdoption:selected").text(val);
分类:
Web程序 时间:
2014-05-15 19:00:51
阅读次数:
314
为了在ES中把document检索出来,我们使用_index,type,_id,但是请求的动作变为了GET:GET
/website/blog/123?pretty响应的数据包括了我们已经熟悉的元素,另外还有使用JSON格式组织的document的_source字段,这个字段是我们存储的数据。{
"...
分类:
其他好文 时间:
2014-05-15 17:32:58
阅读次数:
329
git出现error: bad signature fatal: index file
corruptgit的index被损坏解决方法:需要重新生成index文件,rm -f .git/indexgit reset --mixed HEAD
分类:
其他好文 时间:
2014-05-15 11:41:50
阅读次数:
2932
一个document并不是简单的包含他的普通数据。同时也包括元数据——关于这个document的信息。有三个元数据是必须的,如下:_index
document存储的地方_type document表述的类(class)_id
document的唯一标识符_indexindex就像是关系型数据库的d...
分类:
其他好文 时间:
2014-05-15 01:51:08
阅读次数:
270