摘要: 步骤: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( 阅读全文
posted @ 2011-07-01 09:47 shizhi57 阅读(759) 评论(0) 推荐(0) 编辑
摘要: [OperationContract(Name="GetV_GY_Style_ByClassList_5")]后面加个(Name="GetV_GY_Style_ByClassList_5")就可重载 阅读全文
posted @ 2011-07-01 09:47 shizhi57 阅读(145) 评论(0) 推荐(0) 编辑
摘要: //获取编辑器中HTML内容functiongetEditorHTMLContents(EditorName){varoEditor=FCKeditorAPI.GetInstance(EditorName);return(oEditor.GetXHTML(true));}//获取编辑器中文字内容functiongetEditorTextContents(EditorName){varoEditor=FCKeditorAPI.GetInstance(EditorName);return(oEditor.EditorDocument.body.innerText);}//设置编辑器中内容funct 阅读全文
posted @ 2011-07-01 09:46 shizhi57 阅读(920) 评论(0) 推荐(0) 编辑
摘要: HTML代码:<form><inputtype="checkbox"name="newsletter"checked="checked"value="Daily"/><inputtype="checkbox"name="newsletter"value="Weekly"/><inputtype="checkbox"name="newsletter"checked=" 阅读全文
posted @ 2011-07-01 09:45 shizhi57 阅读(3265) 评论(0) 推荐(0) 编辑
摘要: 获取一组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;获取值:文本框,文本区 阅读全文
posted @ 2011-07-01 09:44 shizhi57 阅读(182) 评论(0) 推荐(0) 编辑
摘要: varstr="";$("input[name='newsletter']").each(function(){if(this.checked)str+=$(this).val()+",";})alert(str); 阅读全文
posted @ 2011-07-01 09:43 shizhi57 阅读(348) 评论(0) 推荐(0) 编辑
摘要: <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") 阅读全文
posted @ 2011-07-01 09:42 shizhi57 阅读(57599) 评论(0) 推荐(1) 编辑
摘要: (方式一)$(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 阅读全文
posted @ 2011-07-01 09:42 shizhi57 阅读(1903) 评论(0) 推荐(0) 编辑
摘要: Jquery老的版本var_name=$(“input[@name='radio_name']:checked”).val();Jquery1.3以后的版本var_name=$(“input[name='radio_name']:checked”).val();区别是老版本有个@. 阅读全文
posted @ 2011-07-01 09:40 shizhi57 阅读(268) 评论(0) 推荐(0) 编辑
摘要: @{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 阅读全文
posted @ 2011-07-01 09:39 shizhi57 阅读(981) 评论(2) 推荐(0) 编辑