摘要:
Lua常用的4中遍历方式for key, value in pairs(tbtest) do XXX end 这样的遍历顺序并非是tbtest中table的排列顺序,而是根据tbtest中key的hash值排列的顺序来遍历的。for key, value in ipairs(tbtest) do XXX end 这样的循环必须要求tbtest中的key为顺序的,而且必须是从1开始,ipairs只会从1开始按连续的key顺序遍历到key不连续为止。for i=1, #(tbtest) do XXX end 这种遍历,只能遍历当tb... 阅读全文
摘要:
--delete触发器IF(EXISTS(SELECT * FROM sysobjects WHERE name='T_PlanQtyDelete'))DROP TRIGGER T_PlanQtyDeletego Create trigger T_PlanQtyDelete On PlanQty for Delete As INSERT INTO dbo.PlanQtyHistory(qty, addDate, Productid) SELECT qty, addDate, Productid FROM deletedgo --u... 阅读全文
摘要:
Ext中 renderer一般用于Grid中对列模型的渲染上 其详细信息记录在 Ext.grid.ColumnModel 中的setRenderer( Number col, Function fn ) 方法里一、col : Number The column index二、fn : FunctionThe function to use to process the cell's raw data to return HTML markup for the grid view. The render function is called with the following para 阅读全文
摘要:
// // C# 实现端口扫描 // using System; using System.Collections.Generic; using System.Text; using System.Net; using System.Net.Sockets; using System.Threadi 阅读全文