{"action":"opened","issue":{"url":"https://api.github.com/repos/hehongwei44/my-blog/issues/61","labels_url":"https://api.github.com/repos/hehongwei44/my-blog/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/hehongwei44/my-blog/issues/61/comments","events_url":"https://api.github.com/repos/hehongwei44/my-blog/issues/61/events","html_url":"https://github.com/hehongwei44/my-blog/issues/61","id":118328100,"number":61,"title":"微插件系列:老虎机抽奖","user":{"login":"hehongwei44","id":1640994,"avatar_url":"https://avatars.githubusercontent.com/u/1640994?v=3","gravatar_id":"","url":"https://api.github.com/users/hehongwei44","html_url":"https://github.com/hehongwei44","followers_url":"https://api.github.com/users/hehongwei44/followers","following_url":"https://api.github.com/users/hehongwei44/following{/other_user}","gists_url":"https://api.github.com/users/hehongwei44/gists{/gist_id}","starred_url":"https://api.github.com/users/hehongwei44/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hehongwei44/subscriptions","organizations_url":"https://api.github.com/users/hehongwei44/orgs","repos_url":"https://api.github.com/users/hehongwei44/repos","events_url":"https://api.github.com/users/hehongwei44/events{/privacy}","received_events_url":"https://api.github.com/users/hehongwei44/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-23T06:49:26Z","updated_at":"2015-11-23T06:49:26Z","closed_at":null,"body":"### 综合概述###\r\n\r\n一款模拟老虎机形式的抽奖插件。\r\n\r\n![qq 20151123144830](https://cloud.githubusercontent.com/assets/1640994/11331128/560f61ba-91f1-11e5-9746-080902d23665.jpg)\r\n\r\n\r\n### 兼容性###\r\n\r\nIE6+、Chrome、Firefox、Safari、Opera\r\n\r\n### 框架依赖###\r\n\r\n依赖框架：jQuery\r\n\r\n### 模块支持###\r\n\r\n支持AMD、node和浏览器\r\n\r\n### 使用介绍###\r\n1.HTML页面结构\r\n\r\nps:一般抽奖类的机构，基本都是由列表或者table组成。不过推荐列表的形式最佳。本插件是根据列表形式来修改的。\r\n    \r\n    //可以参考demo中的示例\r\n    <div class=\"inbox\">\r\n            <ul id=\"random_box\">\r\n                <li id=\"random_1\">谢谢惠顾</li>\r\n                <li id=\"random_2\">苹果笔记本</li>\r\n                <li id=\"random_3\">谢谢惠顾</li>\r\n                <li id=\"random_4\">10Q币</li>\r\n                <li id=\"random_5\">谢谢惠顾</li>\r\n                <li id=\"random_6\">5Q币</li>\r\n                <li id=\"random_7\">谢谢惠顾</li>\r\n                <li id=\"random_8\">5Q币</li>\r\n                <li id=\"random_9\">谢谢惠顾</li>\r\n                <li id=\"random_10\">10Q币</li>\r\n                <li id=\"random_11\">谢谢惠顾</li>\r\n                <li id=\"random_12\">5Q币</li>\r\n                <li id=\"random_13\">谢谢惠顾</li>\r\n                <li id=\"random_14\">5Q币</li>\r\n            </ul>\r\n            <b class=\"ok\" id=\"ok\">抽奖</b>\r\n     </div>\r\n     \r\n2.css的结构由于会根据UI的改变而发生改变，所以样式结构不固定，但是要放到指定的结构中去。\r\n\r\n3.添加脚本,更多参数请**参阅源代码**，或在github上留言。\r\n    \r\n    //先new出来一个对象\r\n    var raffle = new $.Raffle({\r\n        succCB : function(){\r\n            alert(\"成功后的回调函数\");\r\n        }\r\n    });\r\n    //调用\r\n    raffleinit()\r\n\r\n### 下载连接###\r\n\r\nhttps://github.com/hehongwei44/raffle\r\n\r\n### 授权信息###\r\n\r\n授权类型：MIT\r\n\r\n授权类型信息：https://github.com/hehongwei44/raffle/blob/master/LICENSE\r\n\r\n### 更改日志###\r\n\r\nhttps://github.com/hehongwei44/raffle/blob/master/ChangeLog.md\r\n\r\n### 其他补充###\r\n\r\n我们可能会遇到这样的需求、遇到各种什么节日的话，就会举办抽奖类的活动，用来吸引用户参加。\r\n那么产品那边希望开发能写出酷炫叼炸天特效来提高用户体验，这个插件，虽然不能说很经验，但是\r\n足以应付常见的需求，如果遇到其他插件没有的功能，可以修改源码以添加新的需求。\r\n\r\n"}}