摘要: c++11 允许声明一个变量或对象(object)而不需要指明其类型,只需说明它是auto。 1.如: auto i = 42; //i是整型 double f(); auto d=f(); //d是双精度类型 2.如果类型很长或表达式很复杂时,auto特别有用,如: vector<string> 阅读全文
posted @ 2019-11-19 22:42 不知起什么名字 阅读(492) 评论(0) 推荐(0) 编辑
摘要: console.log("start"); await new Promise(function(resolve, reject) { setTimeout(function(){ $('.tips-box').hide(); $('.tips-box').attr("date-id","1"); ... 阅读全文
posted @ 2019-11-19 11:58 不知起什么名字 阅读(225) 评论(0) 推荐(0) 编辑