function cc_msubstr($str, $length, $start=0, $charset="utf-8", $suffix=true){ if(function_exists("mb_substr")){ return mb_substr($st...
分类:
Web程序 时间:
2015-03-17 19:32:08
阅读次数:
151
zookeeper watcher学习笔记 All of the read operations in ZooKeeper - getData(), getChildren(), and exists() - have the option of setting a watch as a side effect. Here is ZooKeeper‘s definition of ...
分类:
其他好文 时间:
2015-03-17 18:20:13
阅读次数:
182
续【Quick-COCOS2D-X 3.3 如何绑定自定义类至Lua之三】动手绑定自定义类至Lua 之后,我们已经完成了自定义类至Lua的绑定。在接下来的环节,我们将使用它。...
分类:
编程语言 时间:
2015-03-17 18:07:34
阅读次数:
187
C++中使用qml对象,直接使用findChild获取qml对象,然后调用setProperty方法设置属性,当然必须在加载qml之后才能使用,不然findChild找不到对象,用法如下。 engine.load(QUrl(QStringLiteral("qrc:/main.qml")))...
分类:
编程语言 时间:
2015-03-17 17:20:46
阅读次数:
244
exists 先从外层查询中取第一个元组,然后和内层查询中相关的属性值,处理内层查询,若内层where子句为真,则外层的这个元组放入到结果集中。 in 先执行内层查询,将结果存放在临时表中,然后执行外层查询。 in 不对null进行处理,见下图,没有返回结果。 总结: 内层查询得出的结果集记录较少,...
分类:
数据库 时间:
2015-03-17 13:49:18
阅读次数:
168
使用quick时自己封装的类存放于特定的目录,便于以后使用
下面是作者经常用到的一个按钮local MyButton = class("MyButton")
function MyButton:ctor(params,scene,listener)
self.button = nil
local time = 0.1
local offset = 40
self.b...
分类:
其他好文 时间:
2015-03-17 12:27:35
阅读次数:
127
查看【Quick-COCOS2D-X 3.3 如何绑定自定义类至Lua之二】新建项目中配制环境,我们完美的在新建项目中完成了绑定需要的环境,接下来才是最关健的一步。绑定自定义C++类至Lua。...
分类:
其他好文 时间:
2015-03-17 12:24:23
阅读次数:
143
Given a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacent cell, where "adjace...
分类:
其他好文 时间:
2015-03-17 12:18:53
阅读次数:
111
首先在任意位置创建一个文件夹,我使用的目录是D:\Program Files\Quick Start\command\,桌面我的电脑/计算机图标右键属性高级系统设置 -> 高级 -> 环境变量在系统变量中找到Path,双击修改,在结尾追加你的目录D:\Program Files\Quick Star...
class Program { struct player { public string name; public int hp; public int attack; p...