$.ajax({ url: 'http://127.0.0.1/work/open.json', success: function(data) { var ob = data; if (typeof(data) == 'str...
分类:
Web程序 时间:
2014-07-31 20:09:27
阅读次数:
594
using UnityEngine;using System.Linq;using System.Collections.Generic;[RequireComponent(typeof(CharacterMotor))][RequireComponent(typeof(CharacterStatu...
分类:
其他好文 时间:
2014-07-31 16:08:17
阅读次数:
240
private void InputClear(Control EditArea) { foreach (Control Ctrl in EditArea.Controls) { if (Ctrl.GetType().Equals(typeof(TextBox))) { Ctrl.Text = "....
分类:
其他好文 时间:
2014-07-31 09:45:16
阅读次数:
164
1. js数据类型分为:数值型,布尔型,字符串
通过typeof可以看具体的数据类型是什么。
举例:
//js中变量的定义(在js中,变量用var表示,不管实际类型)
var v1="abd";
var v2=23;
window.alert('v1是'+typeof v1);//alert函数
window.alert('v2是'+typeof v2);//alert...
分类:
Web程序 时间:
2014-07-30 14:53:13
阅读次数:
222
1 String.prototype.format = function(args){2 var _dict = typeof(args)=='object'?args:arguments;3 return this.replace(/\{([^{}]+)\}/g,function(s...
分类:
编程语言 时间:
2014-07-30 00:44:32
阅读次数:
301
//--------------------------------checked防止溢出byteb=255;checked{b++;}Console.WriteLine(b.ToString());//byte类型只包含0~255,加上checked所以会抛出异常//is运算符,检查对象是否与特定的类型兼容inti=0;Console.WriteLine(iisobject);//True//---------------------..
分类:
其他好文 时间:
2014-07-29 15:40:14
阅读次数:
179
1.GetType()获取当前实例的运行时类型, 方法原型为 public System.Type GetType() 属于Object的实例方法即无论是.net框架类库中的类还是用户自己创建的类,都包含此方法,使用方法为: 对象名.GetType()2.typeof()返回特定类型的 System...
分类:
其他好文 时间:
2014-07-29 13:50:58
阅读次数:
151
function obj2str(o) { var r = []; if (typeof o == "string") return "\"" + o.replace(/([\'\"\\])/g, "\\$1").replace(/(\n)/g, "\\...
分类:
Web程序 时间:
2014-07-28 15:09:03
阅读次数:
217
using Autodesk.AutoCAD.ApplicationServices;using Autodesk.AutoCAD.Runtime;[assembly:CommandClass(typeof(TestRunCommand.Class1))]namespace TestRunComma...
分类:
其他好文 时间:
2014-07-27 22:02:39
阅读次数:
192
MRC
防止 block 对self的引用 解决办法
__block typeof(self) weakSelf = self;
ARC
防止 block 对self的引用 解决办法
__weak typeof(self) weakSelf = self;...
分类:
其他好文 时间:
2014-07-24 23:21:43
阅读次数:
290