quick下sprite的大小获取,记录一下:local w = sprite:getContentSize().widthlocal h =sprite:getContentSize().height今天连这个最基本的,都不知道怎么获取。挺实用的代码额~
分类:
其他好文 时间:
2014-07-07 08:41:25
阅读次数:
377
1. [代码][JavaScript]代码 //javascript Object: ajax Object//Created By RexLeefunction Ajax(url,data){ this.url=url; this.data=data; this.browser=(func...
分类:
编程语言 时间:
2014-07-07 00:28:43
阅读次数:
330
直接上代码吧#-*-coding:utf-8import osif os.path.exists('d:\\cpickle.data'): os.remove('d:\\cpickle.data')import cPickle as Pshoplist=['apple','banana','...
分类:
编程语言 时间:
2014-07-07 00:09:58
阅读次数:
475
if语句data b; set sashelp.class; if _n_ le 4; *如果if为真,则继续执行if后面的语句,最后输出满足if的条件的观测,如果if为假则立刻返回到data步开头继续执行下一条set语句; y = 'now'; /* y = 'now'; ...
分类:
其他好文 时间:
2014-07-06 23:53:00
阅读次数:
3010
1.知识点:能够对比以下的录屏进行阅读SQL> --SQL语句SQL> --1. DML语句(Data Manipulation Language 数据操作语言): insert update delete selectSQL> --2. DDL语句(Data Definition Language...
分类:
数据库 时间:
2014-07-05 19:59:12
阅读次数:
391
using System;using System.Collections;using System.Configuration;using System.Data;using System.Web;using System.Web.Security;using System.Web.UI;usin...
分类:
其他好文 时间:
2014-07-05 19:57:56
阅读次数:
126
SCENE = "mjdy_dyhry"DIRS = {"md5/scenes/" + SCENE,"data/tex/scenes/" + SCENE,"data/tex/share","data/mesh/scenes/" + SCENE,}import osWORKSPACE = "D:/wo...
分类:
编程语言 时间:
2014-07-05 19:55:48
阅读次数:
278
第一步,声明函数,并将函数作为data对象的属性。例如:var resArray = new Array();function beforeRender(data){ //addToArray为想在template的标签中执行的函数 var addToArray = function(i...
分类:
其他好文 时间:
2014-07-05 19:06:18
阅读次数:
470
在Win7 64bit系统下调试程序时出现如下错误:未能加载文件或程序集”System.Data.SQLite”或它的某一个依赖项。试图加载格式不正确的程序。事实上System.Data.SQLite.dll控件在默认情况下是32bit的,在64bit系统下得使用另一个控件。可以到这里http://...
分类:
数据库 时间:
2014-07-05 18:05:55
阅读次数:
194
照着官方的例子试验了一下DragonBone的使用,代码如下: 1 local AnotherScene = class("AnotherScene", function() 2 return display.newScene("AnotherScene") 3 end) 4 5 func...
分类:
其他好文 时间:
2014-07-05 17:40:58
阅读次数:
190