码迷,mamicode.com
首页 >  
搜索关键字:ret    ( 30742个结果
【jQuery】cookie插件
通过该插件的学习使我对cookie、Date()、getDate()、setDate()、toUTCString()有了更直观的了解,具体分析见注释 ...
分类:Web程序   时间:2017-05-18 20:49:03    阅读次数:188
jquery checkbox选中、改变状态、change和click事件
这个常用的小知识点感觉有必要记一下: jquery判断checked的三种方法:.attr('checked'); //看版本1.6+返回:”checked”或”undefined” ;1.5-返回:true或false.prop('checked'); //16+:true/false.is(': ...
分类:Web程序   时间:2017-05-18 20:09:16    阅读次数:296
基于python的爬虫(一)
抓取网页 python核心库 urllib2 实现对静态网页的抓取,不得不说,“人生苦短,我用python”这句话还是有道理的,要是用java来写,这估计得20行代码 (对不住了博客园了,就拿你开刀吧) 实现对动态网页的抓取,采用post请求,如果想用get方法,只需要把参数接在url后面,不需要d ...
分类:编程语言   时间:2017-05-18 20:00:53    阅读次数:233
百练2505:A multiplication game
传送门:http://bailian.openjudge.cn/practice/2505/ 【题解】 我们找找规律: 1~9显然是Stan wins. 10~18是Ollie wins. 19~162是Stan wins... 发现分界线是18^? 判判就行了。 # include <stdio. ...
分类:其他好文   时间:2017-05-18 18:49:54    阅读次数:155
HTML5判断设备在线离线及监听网络状态变化例子
经测试android ipad默认的浏览器支持,用appcan封装的网页也支持 <!doctype html> <html> <head> <meta http-equiv="content-type" content="text/html;charset=utf-8"> <title>网络在线与离 ...
分类:Web程序   时间:2017-05-18 18:41:46    阅读次数:299
如何使用JAVA请求HTTPS
JDK对应的TLS版本(仅供参考) 1.写一个SSLClient类,继承至HttpClient 2.写一个利用HttpClient发送post请求的类 3.调用请求的测试代码 用到的架包: 下载 ...
分类:编程语言   时间:2017-05-18 18:40:43    阅读次数:227
时间差计算
showdaytext : function(time){ var showday = { "1" : "一天后开始", "2" : "两天后开始", "3" : "三天后开始", }; var upday = new Date(time).getTime() - new Date().getTim ...
分类:其他好文   时间:2017-05-18 17:54:21    阅读次数:124
购物车全选,全不选,局部全选,全选判定
效果图: ...
分类:其他好文   时间:2017-05-18 16:47:10    阅读次数:248
LeetCode: Ugly Number II
题目链接:https://leetcode.com/problems/ugly-number-ii/ 题目: Write a program to find the n-th ugly number. Ugly numbers are positive numbers whose prime fac ...
分类:其他好文   时间:2017-05-18 13:57:40    阅读次数:112
[LeetCode]Remove Element
题目:给定一个数字集合A。要求去除集合A中全部的elem,并返回新集合A的长度 算法:遍历覆盖 public class Solution { public int removeElement(int[] A, int elem) { int length = 0; for (int i=0; i< ...
分类:其他好文   时间:2017-05-18 13:31:26    阅读次数:133
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!