摘要:
Strong and Loose Typing:强弱比较// C#var customer = new Customer(); //var is compiler inferred//Javascriptvar customer = new Customer(); //var is variable declarationC#:var变量由编译器决定合适的类型,此例为Customer类型JavaScript:var代表变量的意思,没有类型的强制Compiler匹配最接近Type//C#var x = 0; // compiler暗示 to be intbool isInt = x is int 阅读全文