摘要:
jquery:$('input[type="radio"]').click(function(e){if($(this).val()==1){if(!valid_form()){e.preventDefault();//取消事件//e.stopPropagation();//停止事件冒泡}}});prototype:$('button_id').observe('click',function(e){Event.stop();}); 阅读全文
posted @ 2011-07-12 16:38
涛光
阅读(3517)
评论(0)
推荐(0)
摘要:
具体的实例,假设我们有一个网站www.example.com, 需要增加varnish,来提升性能。http header头信息中的 Cache-Control: s-maxage 参数可以设置页面在varnish中缓存的时间 nginx配置:server{listen80server_nameww... 阅读全文
posted @ 2011-07-12 14:51
涛光
阅读(1583)
评论(0)
推荐(0)

浙公网安备 33010602011771号