<script type="text/javascript">
$(document).ready(function () {
$(".xheditor1").xheditor(true, { tools: 'simple',
upLinkUrl: "../Link", upLinkExt: "zip,rar,txt",
upImgUrl: "../Upload", upImgExt: "jpg,jpeg,gif,png",
upFlashUrl: "../Upload", upFlashExt: "swf",
upMediaUrl: "../Upload", upMediaExt: "avi"
});
});
</script>
@Html.TextAreaFor(a => a.Content, new { @class = "xheditor1", rows = "8"})
public ActionResult Add(Aboutus ab)
{
if (Loginstate == 0)
{ return RedirectToAction("Index", "AdminLayout"); }
if (ab != null)
{
if (ModelState.IsValid)
{
ResultMessage res = abll.AddAboutus(ab);
ViewBag.Mes = (int)res;
}
else
ViewBag.Mes = -1;//状态不对
}
else
ViewBag.Mes = -2;//数据错误
return View();
}
关注!
我更想不通,和你代码一样,但我显示的只是一个输入框,所有的tool都看不到,这是为啥?