草稿

cd /home/wyk1184/下载/navicat111_mysql_cs$ & ./start_navicat

navicat 破解方案
第一次执行start_navicat时,会在用户主目录下生成一个名为.navicat的隐藏文件夹。

cd /home/rain/.navicat/

此文件夹下有一个system.reg文件

rm system.reg

把此文件删除后,下次启动navicat 会重新生成此文件,30天试用期会按新的时间开始计算。

一个表单两个提交

<script>
function save(){ 
document.form1.action="right.asp";
document.form1.submit();
}
function send(){
document.form1.action="sendtaskook.asp";
document.form1.submit();
}
</script>
<form name="form1">
<input type="button" name="btn1" value="发送" onclick="send();">
<input type="button" name="btn2" value="保存" onclick="save();">
</form>

@RequestMapping(value="/changePsd/{password}/{newpsd}",method=RequestMethod.POST)
public String changePsd(@PathVariable("password") String password,@PathVariable("newpsd") String newpsd,@RequestBody Account account,BindingResult errors) throws Exception {
if(errors.hasErrors()) {
return "/order/index";
}
account.setPassword(newpsd);
accountManager.update(account);
Flash.current().success(UPDATE_SUCCESS);
return "redirect:/";
}

更多 0

Javascript获取select下拉框选中的的值
现在有一id=test的下拉框,怎么拿到选中的那个值呢?

分别使用javascript原生的方法和jquery方法

<select id="test" name="">
<option value="1">text1</option>
<option value="2">text2</option>
</select>

code:

一:javascript原生的方法

1:拿到select对象: var myselect=document.getElementById("test");

2:拿到选中项的索引:var index=myselect.selectedIndex ; // selectedIndex代表的是你所选中项的index

3:拿到选中项options的value: myselect.options[index].value;

4:拿到选中项options的text: myselect.options[index].text;

二:jquery方法(前提是已经加载了jquery库)

1:var options=$("#test option:selected"); //获取选中的项

2:alert(options.val()); //拿到选中项的值

3:alert(options.text()); //拿到选中项的文本

isNaN()
typeof()

解决document.form1.submit()对象不支持此属性或方法
决document.form1.submit()对象不支持此属性或方法的办法.
解决document.form1.submit()对象不支持此属性或方法的办法:很简单,将页面中名称为"submit"的控件改一下名称就可以了
比如:
有一个submit按钮名字叫submit
<input type="submit" name="submit" value="提交"/>
你把这个名称改一下
<input type="submit" name="submit1" value="提交"/>

若使用 @ResponseBody 需要导入包

import org.springframework.web.bind.annotation.ResponseBody;
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值