分页

<div class="fy" id="diggpager" style="margin-top:20px">
@Ajax.Pager(Model, new PagerOptions
{
CurrentPagerItemTemplate = "<span class=\"current\">{0}</span>",
DisabledPagerItemTemplate = "<span class=\"disabled\">{0}</span>",
FirstPageText = "首页",
NextPageText = "下一页",
LastPageText = "尾页",
PrevPageText = "上一页",
PageIndexParameterName = "page",//当前页数
PagerItemTemplate = "&nbsp;{0}",
Id = "page",
ActionName = "Index"//action名称
}, new MvcAjaxOptions { UpdateTargetId = "investlist", HttpMethod = "Post", EnablePartialLoading = true })
</div>

//UpdateTargetId = "investlist" 绑定的列表页面

//EnablePartialLoading = true 部分页加载

Flex中的 for in 与 for each in

(1)for...in循环中的迭代变量是对象中的属性,键值对中的键值

var mockData:Object={ID: 1,Say:"Hello",Name:"yuxuanji"};

for (var entry:Object in mockData)
{
     trace(entry); 
}

console output:

ID
Say
Name

 

//结论:for 遍历的是key


(2)for each...in循环中的迭代变量是对象键值对中保存的值(属性所保存的值)

for each (var entry:Object in mockData)
{
trace(entry);

}

console output:

123
Hello

yuxuanji

//结论:for each遍历的是value