[JS]常用特效js插件

 网站一:http://www.superslide2.com/
function set_a_title(n) { 
    var t = $.trim($(n).text()); 
    t && !$(n).attr("title") && $(n).attr("title", t) ;
}

转自 http://www.cnblogs.com/bundles/aggsite.js

作用:将链接文本添加到提示

使用方法:

  <a href="http://news.cnblogs.com/n/543989/" target="_blank" onmouseover="set_a_title(this);">今年的苹果WWDC至少有三大亮点:iOS 10能隐藏应用</a>

//////////////////////////////////////////////////////////////

MVC 下拉框添加到页面的几种方法:摘自:http://www.cnblogs.com/CreateMyself/p/5424894.html

@Html.Label("select", "下拉选项")
@Html.DropDownList("select", new SelectList(ViewBag.Value, "Value", "Text"))
<hr />
@Html.Label("下拉选项", new { @for = "select2" })
@Html.DropDownList("select2", ViewBag.Table as SelectList)
<hr />
@Html.Label("下拉选项", new { @for = "select3" })
@Html.DropDownList("select3", ViewBag.Table2 as IEnumerable<SelectListItem>)
<hr />
@Html.Label("下拉选项", new { @for = "select4" })
@Html.DropDownList("select4", new SelectList(ViewBag.Enum))

 

posted on 2016-04-24 19:10  z5337  阅读(376)  评论(0编辑  收藏  举报