{"action":"created","issue":{"url":"https://api.github.com/repos/drduan/minggeJS/issues/185","labels_url":"https://api.github.com/repos/drduan/minggeJS/issues/185/labels{/name}","comments_url":"https://api.github.com/repos/drduan/minggeJS/issues/185/comments","events_url":"https://api.github.com/repos/drduan/minggeJS/issues/185/events","html_url":"https://github.com/drduan/minggeJS/issues/185","id":123624098,"number":185,"title":"快来MingGeJs 1.8.0更新了 ,更新-------------from------mingge----------","user":{"login":"minggeJS","id":16284765,"avatar_url":"https://avatars.githubusercontent.com/u/16284765?v=3","gravatar_id":"","url":"https://api.github.com/users/minggeJS","html_url":"https://github.com/minggeJS","followers_url":"https://api.github.com/users/minggeJS/followers","following_url":"https://api.github.com/users/minggeJS/following{/other_user}","gists_url":"https://api.github.com/users/minggeJS/gists{/gist_id}","starred_url":"https://api.github.com/users/minggeJS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minggeJS/subscriptions","organizations_url":"https://api.github.com/users/minggeJS/orgs","repos_url":"https://api.github.com/users/minggeJS/repos","events_url":"https://api.github.com/users/minggeJS/events{/privacy}","received_events_url":"https://api.github.com/users/minggeJS/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-12-23T09:04:16Z","updated_at":"2015-12-24T02:41:26Z","closed_at":null,"body":" 下载地址：百度网盘 http://pan.baidu.com/s/1ntPfTRb\r\n\r\n MingGeJS1.8.0 寄语：\r\n\r\n            从1.6一直到1.8.0，基本每天都在修BUG，修BUG！升级，升级！ \r\n            每次当我认为完美时，总是有意无意地触犯了一些低级错误！\r\n例如 我把apply居然写成aply，然后又有人喷：你连apply都不会吗？\r\n            我说是手误，你说我装逼！面对这种人恶意攻击身心好疲劳！\r\n 我深深体会到，要把一个类库做得近乎完美，一定要付出很多努力！\r\n            而有的人则说这样的类库，我能做十个八个。\r\n我只是知道JQUERY作者，为了JQUERY同样地付出很多努力，在开发的前几年，作者几乎每天都是在修 BUG。\r\n      更有甚者，说我抄袭JQUERY的源代码！直接理直气壮地埋没我这半个多月的努力！\r\n           例如这句：\r\n match = /(webkit)[ \\/]([\\w.]+)/.exec(ua) || /(opera)(?:.*version)?[ \\/]([\\w.]+)/.exec(ua) || /(msie) ([\\w.]+)/.exec(ua) ||                 !/compatible/.test(ua) && /(mozilla)(?:.*? rv:([\\w.]+))?/.exec(ua) || [];\r\n           navigator.userAgent是已知的，上面是正则配对，\r\n           你认为我不抄袭JQUERY这句，我就写不出来了，这个正则很高技术含量？ /(webkit)[ \\/]([\\w.]+)/.exec(ua) \r\n           选择器的正则我都敲到出来，你认为这种1+1=2的东西对我有难度?！\r\n           某些时候我为了节省时间，抄袭一两句（简单语句）！\r\n           但是总被别人借题发挥，污蔑我!\r\n           本人作为minggeJS原创作者，我问心无愧地对大家最强调一次，minggeJS 99.9%的代码都是原创敲写，0.1%是贪方便抄一两句\r\n           minggeJS代码量一共1800行，每天修BUG和升级很辛苦的，而且做这种类库， 没有任何收入！ 你不喜欢minggeJS，你可以不看不评论，你认为你能                力比我高的，你可以放在心头，你没必要出来跟我拼，我很希望大家尊重原创作者！\r\n               \r\n           \r\n\r\nMingGeJS1.8.0升级细节\r\n：\r\n          MingGeJS1.8.0根据GITHUB贡献者的反馈，作了大幅度调整及修复!\r\n          1：重新调整及修复绑定事件机制：\r\n                  示例(以click事件为例，所有事件都齐全的，别以为只有click哦)：\r\n\r\n                  $(xxx).bind(\"click\",function); 绑定点击事件！\r\n                  $(xxx).bind({\"click\":function});OBJECT形式传入事件！\r\n                  $(xxx).unbind(\"click\",function)解绑该事件与对应函数的绑定\r\n                  $(xxx).unbind(\"click\"）; 解绑点击事件的所有绑定\r\n                  $(xxx).unbind(function)）;解绑该函数的所有事件\r\n                  $(xxx).one(xxxxxxxx) 与bind用法相同，不同的是，只运行一次就解开绑定\r\n                  $(xxx).click(function)    $(xxx).bind(\"click\",function);的简写形式\r\n                  $(xxx).click（）让事件冒泡！\r\n\r\n                   on方法与off一样可以用，\r\n         但没事件委托功能，\r\n          event只作了简单处理！\r\n        event下次升级重新定义过才写委托功能吧 \r\n\r\n          2：新增mouseenter  mouseleave  事件，\r\n新增clientHeight      scrollWidth     scrollHeight      scrollLeft    scrollTop\r\n             兼容IE678 及以尘世间所有浏览器！\r\n\r\n          3：$.toJSON修复，\r\n           对16位字符作了严格处理！\r\n           该函数连续修了四次，都一直反馈BUG，\r\n       这次应该完美了！\r\n              另外说一下stringify插件\r\n          stringify（｛\"a\":document｝）在浏览器下直接报错    minggeJS的toJSON则能完美通过 \r\n              请测试      \r\nalert($.toJSON({\"  \\u0000a%s'\\n我好122\\n\\u00ad\\u0000 \\u0000  \\d\\f\\t\\b\\g\\q \":\"a%s'\\n\\n你222好\\d\\f\\t\\b\\g\\q\\u0000\\u00ad\",b:{a:{b:\"b\"}}}));\r\n        \r\n\r\n         4:   JSONP 先前的机制有严重问题，\r\n已全部重写 请测试 $.getJSON(\"http://xxxx?callback=?\",function(v){alert(v)});});\r\n\r\n5： 还有addClass removclass..以及大部份内部方法....等等，\r\n也作了调整及优化！\r\n 结语：minggeJS并不单单山寨JQUERY，\r\n更多的是融入我自己思想。\r\nminggeJS的CSS3动画做得不错的，\r\n比ZEPTO动画要好是肯定的，\r\n　　　　　　　　例如串联动画，\r\nzepto是没有的，所以minggeJS非常合适合来做手机端，做各种复杂的ＣＳＳ３动画，\r\n                另外minggeJS支持模块及插件形式分离开发，\r\n大致用法基本和JQUERY一致，有部份函数用法则有所稍略\r\n                请大家看DEMO.html演试！（DEMO.html已大幅度更新）\r\n\r\n                我是mingge,请支持国产MingGeJs\r\n![logo](https://cloud.githubusercontent.com/assets/16284765/11973624/287215a0-a997-11e5-8bbd-2b1d0a943185.png)\r\n"},"comment":{"url":"https://api.github.com/repos/drduan/minggeJS/issues/comments/167029874","html_url":"https://github.com/drduan/minggeJS/issues/185#issuecomment-167029874","issue_url":"https://api.github.com/repos/drduan/minggeJS/issues/185","id":167029874,"user":{"login":"haosblog","id":5838104,"avatar_url":"https://avatars.githubusercontent.com/u/5838104?v=3","gravatar_id":"","url":"https://api.github.com/users/haosblog","html_url":"https://github.com/haosblog","followers_url":"https://api.github.com/users/haosblog/followers","following_url":"https://api.github.com/users/haosblog/following{/other_user}","gists_url":"https://api.github.com/users/haosblog/gists{/gist_id}","starred_url":"https://api.github.com/users/haosblog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haosblog/subscriptions","organizations_url":"https://api.github.com/users/haosblog/orgs","repos_url":"https://api.github.com/users/haosblog/repos","events_url":"https://api.github.com/users/haosblog/events{/privacy}","received_events_url":"https://api.github.com/users/haosblog/received_events","type":"User","site_admin":false},"created_at":"2015-12-24T02:41:26Z","updated_at":"2015-12-24T02:41:26Z","body":"@ARwMq9b6 明哥不需要IDE，明哥对IDE的底层了如指掌"}}