摘要: @-webkit-keyframes rock{0%{transform:rotate(0deg);}10%{transform:rotate(3deg);}20%{transform:rotate(-3deg);}30%{transform:rotate(2deg);}40%{transform:... 阅读全文
posted @ 2015-07-05 13:40 bjsunhe 阅读(134) 评论(0) 推荐(0)
摘要: //获取网页宽高var sHeight=document.documentElement.scrollHeight;var sWidth=document.documentElement.scrollWidth;//获取可视区域宽高var wHeight=document.documentEleme... 阅读全文
posted @ 2015-07-05 11:51 bjsunhe 阅读(208) 评论(0) 推荐(0)
摘要: 文档结构:index.htmltodos.cssdestroy.pngtodos.js../backbone.localStorage.js../../backbone.js../../test/vendor/jquery.js../../test/vendor/json2.js../../test... 阅读全文
posted @ 2015-05-18 22:03 bjsunhe 阅读(223) 评论(0) 推荐(0)
摘要: require.js for dependency management and modular code模块化代码,依赖管理 backbone.js for basic application strcture and separation of concerns 应用架构,分成设计marione... 阅读全文
posted @ 2015-05-18 21:56 bjsunhe 阅读(240) 评论(0) 推荐(0)
摘要: 1、得到codehttps://open.weixin.qq.com/connect/oauth2/authorize?appid=wx8888888888888888&redirect_uri=http://mascot.duapp.com/oauth2.php&response_type=cod... 阅读全文
posted @ 2015-05-06 16:31 bjsunhe 阅读(443) 评论(0) 推荐(0)
摘要: var CommentBox = React.createClass({ loadCommentsFromServer: function() { $.ajax({ url: this.props.url, dataType: 'json', success: ... 阅读全文
posted @ 2015-03-25 18:18 bjsunhe 阅读(1099) 评论(0) 推荐(0)
摘要: Hello React var CommentBox = React.createClass({ render: function() { return ( Hello, world! I am a Co... 阅读全文
posted @ 2015-03-25 18:09 bjsunhe 阅读(250) 评论(0) 推荐(0)
摘要: Component PropertiesNow that we have defined theCommentcomponent, we will want to pass it the author name and comment text. This allows us to reuse th... 阅读全文
posted @ 2015-03-24 17:43 bjsunhe 阅读(435) 评论(0) 推荐(0)
摘要: A Quick Introduction to ReactReact is, according to their own definition, “A Javascript library for building user interfaces.” When I first read about... 阅读全文
posted @ 2015-03-24 16:39 bjsunhe 阅读(293) 评论(0) 推荐(0)
摘要: Your first componentReact is all about modular, composable components. For our comment box example, we'll have the following component structure:你的第一个... 阅读全文
posted @ 2015-03-24 16:24 bjsunhe 阅读(758) 评论(0) 推荐(0)