摘要: 重读c++ primier, 从这个文章开始做个记录,方便以后自己查阅。1、string::size_type,string的size()方法返回的类型,可以保证string的任意长度。作为配套类型使得string类型的操作与机器无关。2、操作时需加上作用于操作符,string::size_type。3、size_type为unsigned类型。 阅读全文
posted @ 2012-07-22 21:57 Alexander.liu 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 程序:(function caller(){ function c(){ alert(c.caller); } c();})();caller返回的是:function caller(){ function c(){ alert(c.caller); c(); }},caller必须在当前函数执行时才有意义,如果alert(caller.caller),那么返回null;(function callee(){ alert(arguments.callee);})();callee返回的是: function callee(){ alert(argument... 阅读全文
posted @ 2012-07-22 21:00 Alexander.liu 阅读(1772) 评论(0) 推荐(0) 编辑