会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
2015年7月17日
polymer-quick tour of polymer
摘要: 注册一个元素 <link rel="import" href="bower_components/polymer/polymer.html">//没有添加<dom-module> <script> Polymer({ is:'proto-element', ready:function(){ thi
阅读全文
posted @ 2015-07-17 22:52 j.w
阅读(216)
评论(0)
推荐(0)
polymer-developer guide-feature overview
摘要: <dom-module id='proto-element'> <template> <div>{{greeting}}</div> </template> </dom-module> <script> //元素注册 Polymer({ is:'proto-element', //给元素的原型加属性
阅读全文
posted @ 2015-07-17 22:21 j.w
阅读(155)
评论(0)
推荐(0)
polymer技巧
摘要: 1、添加一个div元素 我们完全可以自己造一个这样的东西出来,比如下面例子我们给 div 元素添加一个 is="demo-test" <script> var Polymer = { dom: 'shadow' }; </script> <base href="http://www.web-tink
阅读全文
posted @ 2015-07-17 22:18 j.w
阅读(219)
评论(0)
推荐(0)
polymer入门例子-已过时
摘要: 这个教程挺不错!:http://blog.csdn.net/renfufei/article/details/37040883 过时了,现在的版本已经为1.0了 一:创建APP结构 本教程会使用预先构建好的polymer元素:toolbar,tabs,panel <meta name="viewpo
阅读全文
posted @ 2015-07-17 22:16 j.w
阅读(442)
评论(0)
推荐(0)
polymer-developer guide-registration and lifecycle
摘要: 注册和声明周期 my = Polymer({ is: "proto-element", created: function() { this.innerHTML = 'created'; } }); //注册之后会返回构造函数,创建实例的两种方法 var el1 = document.createE
阅读全文
posted @ 2015-07-17 22:09 j.w
阅读(262)
评论(0)
推荐(0)
j.w
公告
导航
博客园
首页
新随笔
联系
订阅
管理