{"id":1864,"date":"2017-08-28T14:24:40","date_gmt":"2017-08-28T06:24:40","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=1864"},"modified":"2017-08-28T14:24:40","modified_gmt":"2017-08-28T06:24:40","slug":"jquery%e5%ae%9e%e7%8e%b0%e5%b9%b8%e8%bf%90%e5%a4%a7%e8%bd%ac%e7%9b%98php%e6%8a%bd%e5%a5%96%e7%a8%8b%e5%ba%8f%e6%8a%bd%e5%a5%96%e7%a8%8b%e5%ba%8f","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=1864","title":{"rendered":"jQuery\u5b9e\u73b0\u5e78\u8fd0\u5927\u8f6c\u76d8(php\u62bd\u5956\u7a0b\u5e8f)\u62bd\u5956\u7a0b\u5e8f"},"content":{"rendered":"<p>\n\t\u62bd\u5956\u7a0b\u5e8f\u6709\u5404\u5f0f\u5404\u6837\u7684\u5f62\u5f0f\uff0c\u5176\u4e2d\u5e78\u8fd0\u5927\u8f6c\u76d8\u6700\u4e3a\u5e38\u89c1\u3002\u7ebf\u4e0a\u7ebf\u4e0b\u90fd\u6709\u5f88\u591a\u7684\u4f7f\u7528\u573a\u666f\u3002\n<\/p>\n<p>\n\t\u672c\u6587\u7ed3\u5408\u6211\u81ea\u5df1\u7684php\u7f51\u7ad9\uff0c\u662f\u5b9e\u73b0\u4e00\u4e2aphp\u62bd\u5956\u7a0b\u5e8f\u3002\n<\/p>\n<p>\n\t\u4e0b\u56fe\u662f\u8be5\u62bd\u5956\u7a0b\u5e8f\u7684\u622a\u56fe\uff1a\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"php\u62bd\u5956\u7a0b\u5e8f\" src=\"http:\/\/img.bbs.csdn.net\/upload\/201708\/28\/1503900773_505799.png\" style=\"width: 617px;height: 463px\" \/>\n<\/p>\n<p>\n\t\u4e00\u822c\u7684\u62bd\u5956\u7a0b\u5e8f\u4e3b\u8981\u662f\u7b97\u6cd5\u7a0b\u5e8f\uff0c\u754c\u9762\u6548\u679c\u5e76\u4e0d\u91cd\u8981\u3002\u7b97\u6cd5\u4e00\u822c\u90fd\u662f\u540e\u53f0\u5b9e\u73b0\u7684\uff0c\u524d\u53f0\u6bd5\u7adf\u662f\u4e0d\u5b89\u5168\u7684\u3002\n<\/p>\n<p>\n\t\u524d\u53f0\u53ea\u9700\u8981\u51c6\u5907\u7d20\u6750\uff0c\u62bd\u5956\u7684\u754c\u9762\u7528\u5230\u4e24\u5f20\u56fe\u7247\uff0c\u5706\u76d8\u56fe\u7247\u548c\u6307\u9488\u56fe\u7247\uff0c\u5b9e\u9645\u5e94\u7528\u4e2d\u53ef\u4ee5\u6839\u636e\u4e0d\u540c\u7684\u9700\u6c42\u5236\u4f5c\u4e0d\u540c\u7684\u5706\u76d8\u56fe\u7247\u3002\u6839\u636e\u540e\u53f0\u7684\u6570\u636e\u8fdb\u884c\u6548\u679c\u5c55\u793a\u5373\u53ef\u3002\n<\/p>\n<p>\n\t\u4e0b\u9762\u662f\u5168\u90e8\u5b9e\u73b0\u4ee3\u7801\uff1a\n<\/p>\n<pre class=\"brush:xml;\">\r\n&lt;!DOCTYPE HTML&gt;\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;meta charset=&quot;utf-8&quot;&gt;\r\n&lt;title&gt;\u5e78\u8fd0\u5927\u8f6c\u76d8-jQuery+PHP\u5b9e\u73b0\u7684\u62bd\u5956\u7a0b\u5e8f&lt;\/title&gt;\r\n&lt;link rel=&quot;stylesheet&quot; type=&quot;text\/css&quot; href=&quot;..\/css\/main.css&quot; \/&gt;\r\n&lt;style type=&quot;text\/css&quot;&gt;\r\n.demo{width:417px; height:417px; position:relative; margin:50px auto}\r\n#disk{width:417px; height:417px; background:url(disk.jpg) no-repeat}\r\n#start{width:163px; height:320px; position:absolute; top:46px; left:130px;}\r\n#start img{cursor:pointer}\r\n&lt;\/style&gt;\r\n&lt;script type=&quot;text\/javascript&quot; src=&quot;\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/1.9.1\/jquery.min.js&quot;&gt;&lt;\/script&gt;\r\n&lt;script type=&quot;text\/javascript&quot; src=&quot;jQueryRotate.2.2.js&quot;&gt;&lt;\/script&gt;\r\n&lt;script type=&quot;text\/javascript&quot; src=&quot;jquery.easing.min.js&quot;&gt;&lt;\/script&gt;\r\n&lt;script type=&quot;text\/javascript&quot;&gt;\r\n$(function(){\r\n\t$(&quot;#startbtn&quot;).rotate({\r\n\t\tbind:{\r\n\t\t\tclick:function(){\r\n\t\t\t\tvar a = Math.floor(Math.random() * 360);\r\n\t\t\t\t $(this).rotate({\r\n\t\t\t\t\t \tduration:3000,\r\n\t\t\t\t\t \tangle: 0, \r\n            \t\t\tanimateTo:1440+a,\r\n\t\t\t\t\t\teasing: $.easing.easeOutSine,\r\n\t\t\t\t\t\tcallback: function(){\r\n\t\t\t\t\t\t\talert(&#039;\u4e2d\u5956\u4e86\uff01&#039;);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t });\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n});\r\n&lt;\/script&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;div id=&quot;main&quot;&gt;\r\n   &lt;h2 class=&quot;top_title&quot;&gt;\u4e1a\u4f59\u8349\uff0cwww.xttblog.com&lt;\/h2&gt;\r\n   &lt;div class=&quot;msg&quot;&gt;&lt;\/div&gt;\r\n   &lt;div class=&quot;demo&quot;&gt;\r\n        &lt;div id=&quot;disk&quot;&gt;&lt;\/div&gt;\r\n        &lt;div id=&quot;start&quot;&gt;&lt;img src=&quot;start.png&quot; id=&quot;startbtn&quot;&gt;&lt;\/div&gt;\r\n   &lt;\/div&gt;\r\n&lt;\/div&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>\n\t\u672c\u5b9e\u4f8b\u4e2d\u501f\u52a9\u4e86<a href=\"https:\/\/github.com\/wilq32\/jqueryrotate\" name=\"jqueryrotate\" target=\"_blank\" title=\"jqueryrotate\">jQueryRotate<\/a>\u548c<a href=\"http:\/\/jqueryui.com\/easing\/\" name=\"easing\" target=\"_blank\" title=\"easing\">jquery.easing<\/a>\u4e24\u4e2a\u63d2\u4ef6\u3002\u76f8\u5173\u6e90\u4ee3\u7801\u5df2\u4e0a\u4f20\u5230\u6211\u7684github\uff1a<a href=\"https:\/\/github.com\/xmt1139057136\/lottery\" name=\"php\u62bd\u5956\u7a0b\u5e8f\" target=\"_blank\" title=\"php\u62bd\u5956\u7a0b\u5e8f\">https:\/\/github.com\/xmt1139057136\/lottery<\/a>\u3002<\/p>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=1864\">jQuery\u5b9e\u73b0\u5e78\u8fd0\u5927\u8f6c\u76d8(php\u62bd\u5956\u7a0b\u5e8f)\u62bd\u5956\u7a0b\u5e8f<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u62bd\u5956\u7a0b\u5e8f\u6709\u5404\u5f0f\u5404\u6837\u7684\u5f62\u5f0f\uff0c\u5176\u4e2d\u5e78\u8fd0\u5927\u8f6c\u76d8\u6700\u4e3a\u5e38\u89c1\u3002\u7ebf\u4e0a\u7ebf\u4e0b\u90fd\u6709\u5f88\u591a\u7684\u4f7f\u7528\u573a\u666f\u3002 \u672c\u6587\u7ed3\u5408\u6211\u81ea\u5df1\u7684php\u7f51\u7ad9\uff0c\u662f [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[1467,49,1466],"class_list":["post-1864","post","type-post","status-publish","format-standard","hentry","category-html5","tag-easing","tag-jquery","tag-jqueryrotate"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1864","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1864"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1864\/revisions"}],"predecessor-version":[{"id":1865,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1864\/revisions\/1865"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1864"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1864"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1864"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}