上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 39 下一页
摘要: 关键代码: $("#dg2").datagrid({ onClickRow: function (index, row) { //easyui封装好的时间(被单机行的索引,被单击行的值) $("#bar"+index).show(); $("#bar"+index).siblings().hide( 阅读全文
posted @ 2018-12-26 18:09 雪莉06 阅读(2275) 评论(0) 推荐(0)
摘要: 不管是vue还是react 这种单页面的框架一定都少不了路由 下面给大家讲讲在实际项目中react的路由设置 第一步: 在src目录下新建一个目录route 在该目录下新建一个index.js用于管理路由 如: import React ,{ Component } from 'react'impo 阅读全文
posted @ 2018-12-13 09:28 雪莉06 阅读(1792) 评论(0) 推荐(0)
摘要: <script type="text/javascript"> $(window).resize(function () { $('#tt').tabs({ width: $("#tt").parent().width(), height: "auto" }); }) $(function() { 阅读全文
posted @ 2018-12-12 09:30 雪莉06 阅读(1867) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/MaiJiangDou/p/9245063.html#4136668 转载 一、构建一个新项目 1、命令行运行如下命令,构建一个新的react项目 2、运行项目,效果如下图 二、项目目录 如下图,是新构建项目的目录: 1、node_modules 用于 阅读全文
posted @ 2018-12-07 15:35 雪莉06 阅读(293) 评论(2) 推荐(0)
摘要: 本文主要介绍了jQuery、layer实现弹出层的打开、关闭功能,需要的朋友可以参考下,希望能帮助到大家。 打开弹出层: 在list页面带入layer.js 在list页面点击时,弹出form弹出层,list.js: 1 2 3 4 5 6 7 8 9 10 11 12 13 $(".add_cat 阅读全文
posted @ 2018-11-29 16:31 雪莉06 阅读(1916) 评论(0) 推荐(0)
摘要: 本节主要介绍了jQuery如何获取节点和子节点文本,下面有个示例,大家可以参考下 对于下面的html片段, ? 1 <div id="text_test">test text<a href="techbrood.com" rel="external nofollow" >techbrood co.< 阅读全文
posted @ 2018-11-28 16:02 雪莉06 阅读(3552) 评论(0) 推荐(0)
摘要: Jquery:$("#accuracy").val($("#accuracy").val().replace(/\ +/g,""));//去掉空格 .replace(/\ +/g,"") //去掉空格方法$("#content").val($("#content").val().replace(/[ 阅读全文
posted @ 2018-11-28 15:41 雪莉06 阅读(3816) 评论(0) 推荐(0)
摘要: My97DatePicker是一款非常灵活好用的日期控件。使用非常简单。 下面总结下使用该日历控件选择年、季度、月、周、日的方法。 1、选择年 <input id="d1212" class="Wdate" type="text" onfocus="WdatePicker({dateFmt:'yyy 阅读全文
posted @ 2018-11-27 17:37 雪莉06 阅读(1421) 评论(0) 推荐(0)
摘要: 关于数组中foreach() 、map()、filter()、reduce() 、 some()、every()的总结。 1.foreach() var arr = [1,2,3,4]; arr.foreach((item,index,arr)=>{ console.log(item); //结果为 阅读全文
posted @ 2018-11-20 15:20 雪莉06 阅读(6037) 评论(0) 推荐(0)
摘要: 偶然之间用到这两个方法 然后在数字转换成字符串的时候,并没有感觉这两个方法有什么区别,如下: 1 2 3 4 5 6 7 8 var e=123 e.toString() "123" e.toLocaleString() "123" 1 2 3 4 5 6 7 8 var e=123 e.toStr 阅读全文
posted @ 2018-11-16 16:28 雪莉06 阅读(213) 评论(0) 推荐(0)
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 39 下一页