'编号成生Geovin Du '不夠位數前面加零 塗聚文 Function getStringlen(str,lenint) so="" itop=0 slen=Len(str) itop=lenint-slen i=0 if(slen<lenint) then for i=1 to itop so="0"&so Response.Write so&itop&"<br/>" Next end if get
tp5模型事件是放在函数 public static function init() 而我写成了初始化函数,编辑器生成的 public function initialize() 开始时用着没出问题,但是在删除操作之前前我要删除上传的图片时,在执行unlink时总是找不到图片,因为初始化函数已经提前执行了一遍,所以二次执行时找不到图片地址了找了好长时间原因,记录一下
在 < C++ Templates 2nd Edition >Chapter 1 中,作者将 max() 模板定义如下: template <typename T> T max(T a, T b) { return b < a ? a : b; // 而不是 return a < b ? b : a; } 同时在书下注释里,作者写道 :“Note that the max() template according to [StepanovNotes] intention