Oddbean new post about | logout
 Name That Toon: Last Line of Defense

Feeling creative? Submit your caption and our panel of experts will reward the winner with a $25 Amazon gift card.

https://www.darkreading.com/ics-ot-security/name-that-toon-last-line-of-defense 
  --[[
#	@Author: Liangchengxin
#	@Date:   2017-11-24 16:38:59
#	@Last Modified by: Liangchengxin
#	@Last Modified time:   2018-01-15 10:02:21
#	@Description:  新增商品列表页面
--]]

function initView(view, data)
	local content = {}
	content.cells = {}
	for i = 1, #data do
		local cell = {}
		cell.productId = data[i].productId
		cell.name = data[i].productName
		cell.price = data[i].price
		cell.image = data[i].image
		cell.state = data[i].state
		content.cells[i] = cell
	end
	view:setContent(content)
end