会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
就爱敲代码
博客园
首页
新随笔
联系
订阅
管理
[置顶]
基于bootstrap的表格数据展示
摘要: 一、导入bootstrap文件 二、前端html代码 对应的是前台条件查询和js数据获取 js数据获取部分在第四段 三、后台数据 total为集合总数 int类型 rows为前台需要展示的数据集合 方法前两个参数为前台条件查询的参数 四、js代码 1.表格数据展示 field写想要展示的集合里的类的
阅读全文
posted @ 2018-03-30 10:55 就爱敲代码
阅读(1159)
评论(0)
推荐(0)
2018年5月15日
弹窗式页面
摘要: 一、弹窗js导入(主页面) <!--弹出框--> <script src="~/media/layer/layer.js"></script> <!--弹出框--> 二、html代码(主页面) <input type="text" id="E_id" onclick="ChooseBE()" />
阅读全文
posted @ 2018-05-15 17:12 就爱敲代码
阅读(211)
评论(0)
推荐(0)
读取xml
摘要: List<path> Report = new List<path>(); XmlDocument myCha = new XmlDocument(); try { myCha.Load(path); } catch (Exception e) { if (e != null) { return R
阅读全文
posted @ 2018-05-15 11:07 就爱敲代码
阅读(143)
评论(0)
推荐(0)
更新xml
摘要: 一、 XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load(path); XmlNode memberlist = xmlDoc.SelectSingleNode("works"); XmlNodeList nodelist = memberlist
阅读全文
posted @ 2018-05-15 11:06 就爱敲代码
阅读(515)
评论(0)
推荐(0)
写XML
摘要: //创XML建对象 XmlDocument doc = new XmlDocument(); //bool a = false; //声明根节点 XmlElement books; //判断文件是否存在 if (File.Exists(path)) { //该文件存在 //加载文件 doc.Load
阅读全文
posted @ 2018-05-15 11:04 就爱敲代码
阅读(104)
评论(0)
推荐(0)
遍历一个类的字段和值
摘要: mozc是要遍历的类名 p.name是字段名 p.GetValue是字段名对应的值 foreach (System.Reflection.PropertyInfo p in mozc.GetType().GetProperties()) { XmlElement name = doc.CreateE
阅读全文
posted @ 2018-05-15 11:01 就爱敲代码
阅读(268)
评论(0)
推荐(0)
2018年3月30日
基于高德的地图数据展示
摘要: 因本人能力有限,所以只扒下来的个原点标识 一、导入高德文件 <script type="text/javascript" src='https://a.amap.com/jsapi_demos/static/resource/capitals.js'></script> <script type="
阅读全文
posted @ 2018-03-30 11:47 就爱敲代码
阅读(1141)
评论(0)
推荐(0)
基于ECharts的饼状数据展示
摘要: 一、导入ECharts文件 二、HTML代码 大小后期自己调 三、后台代码 四、js代码 不要问为什么- -我是扒下来的 可复制代码: //基于准备好的dom,初始化echarts实例 var myData = echarts.init(document.getElementById('data')
阅读全文
posted @ 2018-03-30 11:38 就爱敲代码
阅读(850)
评论(0)
推荐(0)
用jquery 获取一个表格里面第3行第4列的值
摘要: <script type="text/javascript" src="http://www.w3school.com.cn/jquery/jquery.js"></script><script type="text/javascript"> $(document).ready(function()
阅读全文
posted @ 2018-03-30 11:17 就爱敲代码
阅读(339)
评论(0)
推荐(0)
关于bootstrap中行格式化
摘要: 一、格式化日期 想直接复制的去看上一遍 二、判断展示 row.后面的是field里的字段 三、选择后台数据展示 作用于用拿到的0、1再去后台拿部门表中0、1代表的部门名 value是js中传过来的值 后面是根据值查到那条数据 拿到数据吧对象里的字段传回去 为毛少于150字不能发表。 算上这句也不到1
阅读全文
posted @ 2018-03-30 11:15 就爱敲代码
阅读(214)
评论(0)
推荐(0)
/Date......的日期格式化
摘要: var date = new Date(parseInt(value.replace("/Date(", "").replace(")/", ""), 10)); var month = date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) :
阅读全文
posted @ 2018-03-30 10:58 就爱敲代码
阅读(264)
评论(0)
推荐(0)
下一页
公告