2015-12-31 Jason Liao
第一次写一年的总结,第一个感觉就是,时间过得真的很快,不知不觉已经到了大三上学期的结束,下学期就要开始找实习了,马上是要出来工作的人了,可我还总像是长不大。 Little 2014 Background 2014 年 6,7 月份进入 TopView 工作室,开始了前端的学习。我很幸运我找不到我喜欢的东西,我喜欢的东西却找到了我。2014 年的暑假师兄师姐叫我自己做一些 “项目” 来把自己学习的东西用起来,我就和同届的后台章杰同学一起做了一个仿照微博的页面,学会了简单地运用 HTML, CSS 和 jQuery,还有前后台交接的问题 继续阅读 »
2012-02-22 Renfei Yu
[Github][]很好的将代码和社区联系在了一起,于是发生了很多有趣的事情,世界也因为他美好了一点点。Github作为现在最流行的代码仓库,已经得到很多大公司和项目的青睐,比如[jQuery][]、[Twitter][]等。为使项目更方便的被人理解,介绍页面少不了,甚至会需要完整的文档站,Github替你想到了这一点,他提供了[Github Pages][]的服务,不仅可以方便的为项目建立介绍站点,也可以用来建立个人博客。 继续阅读 »
2015-11-27 Oliver Wang
直接写 js function imgError(image) { image.onerror = null; // prevent event bubble image.src = "/images/noimage.gif"; return true; } html 使用 jQuery ```js $("img").error(function () { $(this).unbind("error").attr("src", "broken.gif"); }); //If you use this technique you can use the "one" method to av 继续阅读 »
2015-11-29 Oliver Wang
没什么好解释的,直接看代码吧。 js (function (factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. //define(['jquery', 'underscore'], factory); } else if (typeof exports === 'object') { // Node/CommonJS style for Browserify/Seajs module.exports = 继续阅读 »