1、在jsp页面的button添加相关js代码:此方法缺点是用户可能禁用js,此方法就可能失效。2、session的token机制
分类:
其他好文 时间:
2014-06-28 11:07:15
阅读次数:
143
今天在进行代码检查的时候出现下面的异常:1 type parameters of T cannot be determined; no unique maximal instance exists for type variable T with upper bounds int,java.lang...
分类:
编程语言 时间:
2014-06-23 08:05:13
阅读次数:
381
client端:function Save(){ var data_temp = convert_To_Json(checkbox_selected()); //alert(data_temp); $.ajax({ type: "post", ...
分类:
Web程序 时间:
2014-06-23 06:10:35
阅读次数:
294
在Linux上使用vi命令修改一个文件内容的时候,发现无法保存,每次写完使用“:q!”命令可以正常退出但是使用":wq!"命令保存文件并退出时出现一下信息提示:E212: Can't open file for writing Press ENTER or type command to conti...
分类:
系统相关 时间:
2014-06-23 06:06:13
阅读次数:
303
Caught: System.InvalidOperationException: The argument of type 'XXX' cannot be used. Make sure that it is declared on an activity. at System.Activit.....
分类:
其他好文 时间:
2014-06-23 00:18:28
阅读次数:
230
------------------------------------------------------------------------------------------来段小例子,jQuery实现对表单中checkbox的全选/取消/反选-------------------------...
分类:
Web程序 时间:
2014-06-22 23:44:27
阅读次数:
279
执行网络I/O,一个进程必须做的第一件事就是调用socket函数,指定期望的通信协议类型。
#include
int socket(int family, int type, int protocol);
/*返回值:若成功则为非负描述符,若出错则为-1*/
socket函数成功时返回一个小的非负整数值,它与文件描述符类似,把它称为套接字描述符,简称sockfd。family参数指明协议...
分类:
其他好文 时间:
2014-06-22 15:40:10
阅读次数:
301
ORA-00913错误
描述:PL/SQL: ORA-00913: too many values
目标:编写一个可以循环插入数据的脚本
操作过程:
SQL> desc tcustmer
Name Null? Type
----------------- -------- -------------------------...
分类:
数据库 时间:
2014-06-21 21:40:02
阅读次数:
326
root@OpenstackIcehouse2:~# cat /etc/nova/nova-compute.conf [DEFAULT] compute_driver=libvirt.LibvirtDriver [libvirt] virt_type=qemu libvirt_inject_part...
分类:
其他好文 时间:
2014-06-21 16:38:02
阅读次数:
580
在Android中,当我们通过WebView打开一个页面时,如果里面有元素是类型的,WebView只能正常的显示样式,但是是无法点击的。要解决这个问题,我们需要重写WebChromeClient。下面直接给出Demo代码:Activity文件:public class MainActivity ex...
分类:
移动开发 时间:
2014-06-21 16:08:15
阅读次数:
301