HTML actionlink使用jquery附加为html [英] HTML actionlink append as html using jquery
本文介绍了HTML actionlink使用jquery附加为html的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
i我试图将html动作链接传递给我的列表为html
i am trying to pass html action link to my list as html
$("#list1").append('@(Html.ActionLink("' + catNme + '", "CategorySearch", "Search", routeValues: null, htmlAttributes: new { CategoryIds = "' + itemdata.ID_FK + '"}))');
但所有内容都显示在我的列表中。
but all the content is displaying on my list.
推荐答案
( #list1)。append(' @(Html.ActionLink(' + catNme + ' ,CategorySearch,搜索,routeValues:null,htmlAttributes:new {CategoryIds =' + itemdata.ID_FK + ' }))');
("#list1").append('@(Html.ActionLink("' + catNme + '", "CategorySearch", "Search", routeValues: null, htmlAttributes: new { CategoryIds = "' + itemdata.ID_FK + '"}))');
但所有内容都显示在我的列表中。
but all the content is displaying on my list.
试试这个,
Try this ,
( #list1)。append(' @ Html.ActionLink(Back,Index,News,null,新{@class =linkbutton})');
("#list1").append('@Html.ActionLink("Back", "Index", "News", null, new { @class = "linkbutton" })');
这篇关于HTML actionlink使用jquery附加为html的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文