cd /home/wyk1184/下载/navicat111_mysql_cs$ & ./start_navicat
navicat 破解方案
第一次执行start_navicat时,会在用户主目录下生成一个名为.navicat的隐藏文件夹。javascript
cd /home/rain/.navicat/
此文件夹下有一个system.reg文件java
rm system.reg
把此文件删除后,下次启动navicat 会从新生成此文件,30天试用期会按新的时间开始计算。mysql
一个表单两个提交jquery
<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:/"; }
更多 0web
Javascript获取select下拉框选中的的值
如今有一id=test的下拉框,怎么拿到选中的那个值呢?spring
分别使用javascript原生的方法和jquery方法sql
<select id="test" name="">
<option value="1">text1</option>
<option value="2">text2</option>
</select>app
code:code
一:javascript原生的方法orm
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;