上一页 1 ··· 7 8 9 10 11 12 13 下一页
摘要: -(int) f:(int)x;1.这里 - 表示对象方法, +表示类的方法2.参数分割使用 : 号来分开多参数情况:1.函数不带参数 (函数名: f) -(int) f2.带一个参数(函数名 f:x) -(int) f:(int)x 类似c语言中的 int f(int x) 函数3.带两个... 阅读全文
posted @ 2015-08-22 18:17 facial 阅读(3706) 评论(0) 推荐(1) 编辑
摘要: @interface Dog: NSObject { @public int age; @protected int ID; @Private float price; }@end字段作用域解析:public: 对象该字段是全局,均可访问protected: 对象该字段是保... 阅读全文
posted @ 2015-08-22 14:52 facial 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 创建/销毁 对象:Dog *dog = [Dog alloc]; // 通过alloc创建dog一个这样的对象, alloc相对于C语言中的new // *号既表示指针,也表示引用初始化构造函数:[dog init];销毁对象:[dog release] 阅读全文
posted @ 2015-08-22 14:43 facial 阅读(594) 评论(0) 推荐(0) 编辑
摘要: OC类分为两个文件,一个是.h文件,一个是.m文件 .h文件 存放类,函数的申明 .文件 存放类的具体实现类申明使用关键字 @interface @end来申明类实现使用关键字@implementation @end来实现类声明:#import //相当于c语言的include@interfa... 阅读全文
posted @ 2015-08-22 14:35 facial 阅读(514) 评论(0) 推荐(0) 编辑
摘要: DataTablesTable plug-in for jQueryhttps://www.datatables.net/ 阅读全文
posted @ 2015-08-20 10:10 facial 阅读(216) 评论(0) 推荐(0) 编辑
摘要: Math.random()*(m-n)+n random函数语法Math.random();random函数返回值返回0和1之间的伪随机数,可能为0,但总是小于1,[0,1)返回10-20的随机数Math.random()*(20-10)+10返回指定范围的随机数(n-m之间)的公式Math.ran... 阅读全文
posted @ 2015-08-18 10:33 facial 阅读(267) 评论(0) 推荐(0) 编辑
摘要: "String or binary data would be truncated. The statement has been terminated" most probably means that the size ofvalue you want to insert is larger t... 阅读全文
posted @ 2015-07-01 17:03 facial 阅读(406) 评论(0) 推荐(0) 编辑
摘要: Recently while working with data migration,got an error while running a following query where Server2 has beed added as linked server.SELECT * FROM Se... 阅读全文
posted @ 2015-06-16 16:10 facial 阅读(933) 评论(0) 推荐(1) 编辑
摘要: //{params:要传的参数obj},params这个是关键字不能换别的变量$http.get(url,{params:{id:categoryid,key:keys}}).success(function(data){...});//或者这样试试$http.get('xxx.php?id='+c... 阅读全文
posted @ 2015-06-16 13:02 facial 阅读(476) 评论(0) 推荐(0) 编辑
摘要: PaginatedList.csusing System;using System.Collections.Generic;using System.Linq;using System.Web;namespace VML.Web.Mvc { public class PaginatedList... 阅读全文
posted @ 2015-06-01 17:20 facial 阅读(357) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 下一页