摘要: 在网上找到的方法:查看这里//-------------------------------------Article.hbm.xml------------------------------------------ //-------------------------------------Lable.hbm.xml------------------------------------------ 分析: 解决的方法很简单:“在多对多中不需要配置任何lazy和casecade,也不需要中间表的关系”。之前,我在Article.hbm.xml文件中添加了la... 阅读全文
posted @ 2014-03-21 16:12 Seaurl 阅读(419) 评论(0) 推荐(0) 编辑
摘要: JS去除html标签 var str = "This is test"; str = str.replace(/].*?>/g,""); alert(str); 原文地址:http://blog.csdn.net/aganar/article/details/6192920C#去除html标签public string RemoveHtmlTag(string Str) { return Regex.Replace(Str, "]*>", " "); } string str=f_ZhengWen.Va 阅读全文
posted @ 2014-03-21 15:10 Seaurl 阅读(419) 评论(0) 推荐(0) 编辑
摘要: 问题是这样的,有两个表:文章(Article)和分类(Lable),这两者之间的关系是多对多关联,如果你用Nhibernate来保存数据的话非常的好操作,新建Article,然后把Lable值赋值给Article的Lables(这个是在Article类里面有定义的),像这样:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace MyMvc4Project.Models{ /// /// t_Article:实体类(属性说明自动提取数据库字段的描述信息)... 阅读全文
posted @ 2014-03-21 10:40 Seaurl 阅读(1449) 评论(8) 推荐(0) 编辑