Java两种简单的获取页面源码的方法

package demo11; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.util.Scanner; import org.apache.commons.io.IOUtils; public...

2017/07/03 10:02
1.1K
剑指offer:第一个只出现一次的字符

题目: 在一个字符串(1<=字符串长度<=10000,全部由字母组成)中找到第一个只出现一次的字符,并返回它的位置 思路:实际上就是用一个hash表来以字符作为key,出现次数作为value,存储字符总次数...

2017/07/03 10:01
343
polymer中的sort和filter

sort同Array.sort。 <dom-module id="employee-search"> <template> <input value="{{searchString::input}}"> <template is="dom-repeat" items="{{employees}}" as="employee" ...

2017/07/03 10:01
111
Java排序二叉树

排序二叉树是一种特殊的二叉树,通过这种结构可以很方便的对树中所有节点进行排序和检索。排序二叉树具有以下性质,也是实现排序二叉树所要注意的地方: - 若它的左子树不空,则左子树上所有...

2017/07/03 09:57
120
polymer属性绑定类型

<!-- class --> <div class$="[[foo]]"></div> <!-- style --> <div style$="[[background]]"></div> <!-- href --> <a href$="[[url]]"> <!-- label for --> <label for$="[[bar]]"></la...

2017/07/02 12:12
100
polymer为元素添加监听与polymer.dom(event)

方式一: <dom-module id="x-custom"> <template> <div>I will respond</div> <div>to a tap on</div> <div>any of my children!</div> <div id="special">I am special!<...

2017/07/02 11:58
362
polymer的伪元素操作(::语法)

Styling distributed children (::content) Under shady DOM, the <content> tag doesn't appear in the DOM tree. Styles are rewritten to remove the ::content pseudo-element, and any ...

2017/07/02 11:49
162
polymer为元素的原型添加可执行方法

Polymer({ is: 'cat-element', _says: 'meow', speak: function() { console.log(this._says); } }); 使用方法: var cat1 = document.querySelector('cat-element')...

2017/07/02 11:07
76
polymer自定义浏览器标签方法

<!DOCTYPE html> <html> <head> <script src="bower_components/webcomponentsjs/webcomponents-lite.js"> </script> <link rel="import" href="bower_co...

2017/07/02 10:26
111
使用polymer扩展HTML标签

使用polymer的extend属性可以为HTML标签扩展方法,如为:input标签扩展方法如下: MyInput = Polymer({ is: 'my-input', extends: 'input', created: function() {...

2017/07/02 10:22
70
polymer中的factoryImpl属性

factoryImpl属性用于在创建新对象时,为新对象初始化参数。如不添加该属性时,注册对象的动作: // register an element MyElement = Polymer({ is: 'my-element', /...

2017/07/02 10:16
63
polymer中的notify和reflectToAttribute

notify and reflectToAttribute. The notify and reflectToAttributeproperties may sound similar: they both make the element's state visible to the outside world. reflectToAttribute...

2017/07/02 08:59
408
复选框操作js插件xcheck.js

演示地址:http://www.qietu.com/p/XCheck/ 源码: <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <script src="http://www.qietu.com/p/XCheck/jquery-1.11.3...

2017/07/01 10:46
98

没有更多内容

加载失败,请刷新页面