- 博客(14)
- 问答 (2)
- 收藏
- 关注
原创 easyui 添加option 以及重新添加option
若有一个select是easyui框架的,此时不能直接使用onchange="xxx()"的方法来添加option假设html代码如下:jquery代码:$("#selectid").combobox({onChange: function (n,o) {//若select里面原先已经有值,需要进行重新填入的化,那么我们可以先清空,再添加$("#select
2016-10-18 15:41:00
6255
1
原创 orcale利用rownum取出前几行数据
例如我现在有一个student表,我要利用age年龄进行升序排序,再取出其中前10行数据select * from (select * from student order by student_id asc) where rownum这样可以保证不会出现随机数据,且相同年龄的学生不会被排除,即若有两个相同年龄的学生,且处于前10中,将被同时取出
2016-10-18 10:37:07
1991
原创 jquery的$.alerts.alert怎么实现点击后跳转页面
jquery插件有个自带的弹窗效果,若要实现关闭弹窗后跳转页面或刷新页面,可进行如下操作$.alerts.alert("这里是显示的内容",“这里是标题”,"这里是点击处的文字",function(){这里进行点击后的操作});示例如下$.alerts.alert("点击下方确认按钮刷新页面", "温馨提示","确定",function(){window.locat
2016-10-10 15:11:46
18013
转载 jquery遍历table的tr获取td的值
html代码: 5 删除 删除 删除 方法一:var trList = $("#history_income_list").children("tr") for (var i=0;i<trList.length;i++) { var tdArr = trList.eq(i).find("td");
2016-08-25 09:10:34
8281
原创 关于取循环中的所有select的相关实例
假设现在有一个问卷编辑的页面,其中有问题类型(包括单选、多选和简答),当问题类型时简答时,不显示选项内容,当不是时,显示所有选项内容,如下为了实现选择简答时,A到F选项消失,需要取到select的onchange值,如下进行即可select: (其中count是为了辨别是哪一题的select被改变)A到F:(id加上status的count值是为了辨别是
2016-08-24 09:48:14
1276
转载 用java编写一个函数,统计一个字符串中每个字母出现的次数
String str ="2342asfghgyu56asdasda"; Map maps = new HashMap(); for(int i=0;i<str.length();i++){ String key = String.valueOf((str.charAt(i))); if(!maps.containsKey(key))
2016-08-16 17:37:42
3859
原创 往class="easyui-combobox"的select中添加onchange事件
由于被easyui所装饰,select无法正常触发onchange事件,可以通过(假设select的id等于typeComboboxEditActi):$(document).ready(function () {$("#typeComboboxEditActi").combobox({onChange: function (n,o) {alert("成功");}});
2016-08-15 15:47:37
1620
原创 echart图表中,给数据添加单位符号
假设我的折线图需要在数据后面添加MB的单位,而且折线图上有两条折线则在tootip中添加formatter格式化数据:var option = {title: {text: ''},tooltip : {trigger: 'axis',formatter: "{b} {a0} : {c0} MB{a1} : {c1} MB"},legend: {
2016-08-04 11:06:04
10621
原创 JavaScript 不重复提交(当用户连续点击提交按钮 情景)
在页面编写一个确认提交添加JavaScript代码(用jquery)window.handle = function() {var isCommitted = $("#committed").val();if(isCommitted=="false"){$("#committed").val("true");//代码}else{retrun
2016-07-29 12:21:00
790
转载 mysql启动问题access denied for user 'root'@'localhost'(using password:YES)
1.关闭mysql服务;2.进入命令行,来到mysql的安装目录.假设安装目录为 d:\mysql\ , CMD进入命令行;3.运行 mysqld -skip-grant-tables启动mysql,关闭权限的检查;4..运行 mysqladmin -u root flush-privileges password "newpassword" 重设root密码;5..重新启动m
2016-07-24 08:12:13
303
原创 ailed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test)
在pom,xml中的标签中添加以下代码 org.apache.maven.plugins maven-surefire-plugin 2.17//根据报错的版本号
2016-07-23 15:01:23
1832
1
转载 maven install时报错Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
把java Build Path里面的Libraries中的JRE System Libraries(JRE7)改为jdk7, maven编译需要jdk, 而不是jre
2016-07-23 12:30:56
1128
转载 Cannot return from outside a function or method
在所建立的工程项目中右键单击,找到myeclipse-->Exclude Form Validation单击一下,打上√号,即可看到奇迹出现哦,js的错误已经没了!图例如下:
2016-07-22 17:35:07
199
原创 Myeclipse导入jeecg后pom.xml出错
1------Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.7.1 from http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until
2016-07-22 09:32:42
1767
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人