摘要:
步骤:1.导入文件夹fckeditor2.导入dll文件(FredCK.FCKeditorV2.dll)3.在cshtml中的代码@Html.Raw(ViewBag.FckEditor)4.在Controller中的代码publicvoidFCK(){FredCK.FCKeditorV2.FCKeditoreditor=newFredCK.FCKeditorV2.FCKeditor();editor.ID="MyFck";System.Web.UI.HtmlControls.HtmlFormhf=newSystem.Web.UI.HtmlControls.HtmlForm( 阅读全文
摘要:
[OperationContract(Name="GetV_GY_Style_ByClassList_5")]后面加个(Name="GetV_GY_Style_ByClassList_5")就可重载 阅读全文
摘要:
//获取编辑器中HTML内容functiongetEditorHTMLContents(EditorName){varoEditor=FCKeditorAPI.GetInstance(EditorName);return(oEditor.GetXHTML(true));}//获取编辑器中文字内容functiongetEditorTextContents(EditorName){varoEditor=FCKeditorAPI.GetInstance(EditorName);return(oEditor.EditorDocument.body.innerText);}//设置编辑器中内容funct 阅读全文
摘要:
HTML代码:<form><inputtype="checkbox"name="newsletter"checked="checked"value="Daily"/><inputtype="checkbox"name="newsletter"value="Weekly"/><inputtype="checkbox"name="newsletter"checked=" 阅读全文
摘要:
获取一组radio被选中项的值varitem=$('input[@name=items][@checked]').val();获取select被选中项的文本varitem=$("select[@name=items]option[@selected]").text();select下拉框的第二个元素为当前选中值$('#select_id')[0].selectedIndex=1;radio单选组的第二个元素为当前选中值$('input[@name=items]').get(1).checked=true;获取值:文本框,文本区 阅读全文
摘要:
varstr="";$("input[name='newsletter']").each(function(){if(this.checked)str+=$(this).val()+",";})alert(str); 阅读全文
摘要:
<scriptsrc="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"type="text/javascript"></script><scripttype="text/javascript">jQuery(function(){$("#txt1").blur(function(){$("#txt2").val("");$("#txt3") 阅读全文
摘要:
(方式一)$(document).ready(function(){$("#Submit1").click(function(){alert('bb');$("#form1").submitForm({url:"/CMS/saveArticle.aspx",callback:function(data){if(data.result=="1"){alert("修T改?成¨¦功|!ê?");location.href="Article.asp 阅读全文
摘要:
Jquery老的版本var_name=$(“input[@name='radio_name']:checked”).val();Jquery1.3以后的版本var_name=$(“input[name='radio_name']:checked”).val();区别是老版本有个@. 阅读全文
摘要:
@{IList<string>styleClassCode=newList<string>();styleClassCode.Add(@sc.StyleClassCode.ToString());vari=0;varlength=Mola.Admin.Web.Controllers.ProductController.GetStyleClassLangList(styleClassCode).Count;foreach(Mola.Model.GY_StyleClassLangEntitysclinMola.Admin.Web.Controllers.ProductCon 阅读全文