HTML5¼¼Êõ

ÊÖ»úwebÈçºÎʵÏÖ¶àƽ̨·ÖÏí - СÆƺ¢123

×ÖºÅ+ ×÷ÕߣºH5Ö®¼Ò À´Ô´£º²©¿ÍÔ° 2016-08-23 12:00 ÎÒÒªÆÀÂÛ( )

»°ËµAppÒ»°ã¶¼´øÓзÖÏíµ½É罻ƽ̨µÄÈë¿Ú£¬webÍøÒ³µÄ·ÖÏíÒ²Óкܲ»´íµÄ¿ò¼Ü£¬µ«ÊÇËæ×ÅHTML5µÄ²»¶Ï·¢Õ¹£¬ÊÖ»úwebÒ³ÃæÔ½À´Ô½¶àµÄ½øÈëµ½ÎÒÃǵÄÉú»îÖУ¬ÄÇÈçºÎÔÚÎÒÃǵÄÊÖ»úÉÏÍê³É·ÖÏíÄØ£¿»°Ëµ¸÷´ó·ÖÏíƽ̨¶¼ÓÐÕë¶ÔAndroid¡¢IosµÄSDK£¬×÷Ϊ¿ª·¢Õߣ¬ÎÒÃÇÖ»ÐèÒª½«SDK

¡¡¡¡»°ËµAppÒ»°ã¶¼´øÓзÖÏíµ½É罻ƽ̨µÄÈë¿Ú£¬webÍøÒ³µÄ·ÖÏíÒ²Óкܲ»´íµÄ¿ò¼Ü£¬µ«ÊÇËæ×ÅHTML5µÄ²»¶Ï·¢Õ¹£¬ÊÖ»úwebÒ³ÃæÔ½À´Ô½¶àµÄ½øÈëµ½ÎÒÃǵÄÉú»îÖУ¬ÄÇÈçºÎÔÚÎÒÃǵÄÊÖ»úÉÏÍê³É·ÖÏíÄØ£¿»°Ëµ¸÷´ó·ÖÏíƽ̨¶¼ÓÐÕë¶ÔAndroid¡¢IosµÄSDK£¬×÷Ϊ¿ª·¢Õߣ¬ÎÒÃÇÖ»ÐèÒª½«SDK¼¯³ÉµÄÎÒÃǵÄÏîÄ¿Öм´¿É£¬Í¨¹ýÌṩµÄÍⲿ½Ó¿Ú£¬ÎÒÃÇ¿ÉÒÔºÜÈÝÒ×µÄÍê³É·ÖÏíµÄ¹¦ÄÜ£»webÍøÒ³ÄØ£¬ÍøÉÏÒ²´æÔںܶàÓÅÐãµÄ·ÖÏí¿ò¼Ü£¬ÀýÈ磺bShare·ÖÏí ¡¢JiaThis·ÖÏí£»ÎÒÃÇ¿ÉÒԺܷ½±ãµÄ¼¯³Éµ½ÎÒÃǵÄÏîÄ¿ÖУ»µ«ÊÇÊÖ»úwebÒ³ÃæʵÏÖ·ÖÏí¾ÍÐèÒªÎÒÃÇϵ㹦·òÁË£¬ÒÔΪÕâ¸öʱºò£¬ÎÒÃǾͿÉÒÔͨ¹ýµ÷ÓÃÓû§°²×°µÄ¿Í»§¶Ë½øÐзÖÏí£¬ÕâÀïÐèÒªÌرðÌáµ½µÄ¾ÍÊÇ΢ÐÅ·ÖÏíÁË£¬ÍøÒ³¶ËÎÒÃÇ·ÖÏíʱ£¬Ò»°ã¶¼Êǵ¯³öÒ»¸ö·ÖÏíµÄ¶þάÂ룬ÎÒÃÇʹÓÃ΢ÐÅAppɨÃèÈ»ºó½øÐзÖÏí£¬ÊÖ»ú¶ËÎÒÃǾͲ»ÄÜÕâÑù²Ù×÷ÁË£¬ÎÒÃÇÐèÒªµ±Óû§Ñ¡ÖÐ΢ÐÅ·ÖÏíʱ£¬Ö±½Ó´ò¿ªApp½øÐзÖÏí£¬ÕâÀï¾ÍҪͲÛÒ»ÏÂ΢ÐŵķÖÏíJS SDKÁË£¬³õ´Î½Ó´¥µ½Õâ¸ö¶«¶«Ê±£¬»¹ÒÔΪֻҪÍê³É²Ù×÷¾Í¿ÉÒÔʵÏÖ×Ô¶¨Òå·ÖÏíÁË£¬Ëæן÷ÖÖ¿Ó²»¶Ï£¬×îºó·¢ÏÖ£¬Î¢ÐÅJS SDK½ö½öÖ»Êǽ«ÎÒÃǵÄ×Ô¶¨ÒåÄÚÈÝÁÙʱ»º´æ£¬µ±ÎÒÃÇÐèÒª·ÖÏíʱ£¬»¹ÊÇÐèҪͨ¹ý΢ÐÅÓÒÉϽǵİ´Å¥À´Íê³É²Ù×÷µÄ¡£ºÃàÏ£¬²»¶à½²·Ï»°ÁË£¬½øÈë½ñÌìµÄÖ÷Ì⣬½ÓÏÂÀ´ÎÒ½«°´ÕÕͨ¹ý³¬Á´½ÓÍê³ÉÐÂÀË¡¢QQ¡¢QQ¿Õ¼ä¡¢ÌÚѶ΢²©·ÖÏí£¬È»ºóΪ´ó¼Ò·îÉÏ»ùÓÚC#ƽ̨µÄ΢ÐÅJS SDK·ÖÏí×é¼þµÄÇ©ÃûÂß¼­£¬×îºó´øÁì´ó¼ÒÍê³ÉÊÖ»úweb¶Ë·ÖÏí¡£
¡¡¡¡½øÈëµÚÒ»µã£ºÍ¨¹ý³¬Á´½ÓÍê³É·ÖÏí

¡¡¡¡¶ÔÓÚ³£ÓõÄÉ罻ƽ̨ÎÒÃÇ»ù±¾¿ÉÒÔͨ¹ý³¬Á´½ÓµÄ·½Ê½½øÐÐÄÚÈÝ·ÖÏí£¬µ±È»Î¢ÐųýÍ⣬΢ÐŲ»Ö§³ÖÕâÖÖ·ÖÏí·½Ê½£¬ÕâÖÖ·ÖÏí·½Ê½¿ÉÒÔ±ãÓÚÎÒÃÇ×Ô¶¨Òå·ÖÏí£¬²¢ÇÒʹÓÃÆðÀ´·Ç³£µÄ·½±ã¡£

function shareSina() { sharesinastring = 'http://service.weibo.com/share/share.php?title=' + $("#title").val() + '&url=' + $("#url").val(); window.location.href = sharesinastring; } function shareQQzone(){ var p = { url:location.href, showcount:'0', desc:'', summary:'', title:'', site:'ÂúÒÕÍø', pics:'', style:'203', width:98, height:22 }; sharesinastring = 'http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?title=' + $("#title").val() + '&url=' + $("#url").val() + '&site="ÂúÒÕÍø"'; window.location.href = sharesinastring; } function shareQQ() { var p = { url: location.href, desc: '', title: '', summary: '', pics: '', flash: '', site: 'ÂúÒÕÍø', style: '201', width: 32, height: 32 }; sharesinastring = 'http://connect.qq.com/widget/shareqq/index.html?title=' + $("#title").val() + '&summary=' + $("#url").val() + '&url=' + $("#url").val() + '&site="ÂúÒÕÍø"'; window.location.href = sharesinastring; } function shareQQweibo() { var p = { url: location.href, title: '', pic: '', site: 'ÂúÒÕÍø' }; sharesinastring = 'http://v.t.qq.com/share/share.php?title=' + $("#title").val() + '&url=' + $("#url").val() + '&site="ÂúÒÕÍø"'; window.location.href = sharesinastring; }

¡¡¡¡ÒÔÉϱãÊÇ·ÖÏí¶¼ÐÂÀË΢²©¡¢QQ¡¢QQ¿Õ¼ä¡¢ÌÚѶ΢²©µÄJS´úÂ룬ÎÒÃÇÖ»ÐèÒªÔÚÒ³ÃæÐèÒª·ÖÏíµÄλÖýøÐÐһϵ÷Óü´¿É¡£µ±È»»¹Óкܶàƽ̨£¬Ò»ÑùÖ§³ÖÕâÖÖÐÎʽµÄ·ÖÏíÄÚÈÝ£¬¸÷λС»ï°é×Ô¼ºÈ¥ÃþË÷°É£¬ÕâÀïÎÒÃDz»ÔÙһһ׸Êö¡£

¡¡¡¡ÏÂÃæ½éÉÜһЩ΢ÐÅ·ÖÏí£º

¡¡¡¡Ò»¿ªÊ¼ÎÒÃDZã˵µÀ΢ÐÅÄÚÖõÄä¯ÀÀÆ÷ÓÒÉϽǴøÓзÖÏí¹¦ÄÜ£¬ÕâÒ²µ¼ÖÂÎÒÃÇÔÚ×Ô¼ºµÄÍøÒ³ÉÏÎÞ·¨Ö±½Ó·ÖÏíµ½Î¢ÐŵÄÅóÓÑȦ£¬¶ø΢ÐÅΪÎÒÃÇÌṩÁËÒ»¸öÓÃÓÚ΢ÐÅ×Ô¶¨Òå·ÖÏíµÄJS SDK£¬Ð¡»ï°éÊDz»ÊÇÒѾ­°´ÄͲ»×¡×Ô¼ºµÄ¼¤ÇéÁË£¬ÏÂÃæÎÒÃÇÀ´Ïȼòµ¥¿´Ò»Õâ¸öJS SDKΪºÎÎ΢ÐŹٷ½ÌṩµÄÎĵµµ½Ê±Í¦Ïêϸ£¬µ«ÊÇÏëÒª¿ª·¢JS SDKÎÒÃÇÊ×ÏÈÐèÒªÒ»¸ö΢ÐŹ«Öںţ¬È»ºóÎÒÃǵã»÷“½Ó¿ÚȨÏÞ”¿ÉÒԲ鿴µ½ÎÒÃÇËùÓµÓеÄȨÏÞ£¬ÈçÏ£º

¡¡¡¡

¡¡¡¡¶ÔÓÚÉÏÃæÕâЩ»ù±¾µÄ¶«Î÷¾Í²»ÔÚ¶à˵£¬ÏÂÃæÎÒÃÇÖص㿴һÏÂÈçºÎ»ñÈ¡jsapi_ticket£¬ÈçºÎ½øÐÐÇ©Ãû¡£¹Ù·½ÎĵµÌáʾµÄ²½ÖèÊÇ£¬ÏÈ»ñÈ¡access_token£¬È»ºóͨ¹ýaccess_tokenÀ´»ñÈ¡jsapi_ticket£¬×îºóͨ¹ýjsapi_ticket½øÐÐÇ©Ãû¡£ÏÂÃæÎÒÃǾÍÒ»²½Ò»²½Íê³ÉÉÏÃæµÄ¹¤×÷¡£×¢£º¹Ù·½ÌṩÁËphp¡¢java¡¢python¡¢nodejsµÄʵÀý³ÌÐò£¬ÕâÀïÎÒ½«ÒÔC#ΪÀýΪ´ó¼Ò½áÊøÈçºÎÍê³ÉÉÏÃæµÄ²Ù×÷¡£

¡¡¡¡µÚÒ»²½¡¢»ñÈ¡access_token

¡¡¡¡¹Ù·½ÎĵµÊÇÕâÑù˵µÄ£ºaccess_tokenÊǹ«ÖںŵÄÈ«¾ÖΨһ½Ó¿Úµ÷ÓÃƾ¾Ý£¬¹«Öںŵ÷Óø÷½Ó¿Úʱ¶¼ÐèʹÓÃaccess_token¡£¿ª·¢ÕßÐèÒª½øÐÐÍ×ÉƱ£´æ¡£access_tokenµÄ´æ´¢ÖÁÉÙÒª±£Áô512¸ö×Ö·û¿Õ¼ä¡£access_tokenµÄÓÐЧÆÚĿǰΪ2¸öСʱ£¬Ð趨ʱˢУ¬Öظ´»ñÈ¡½«µ¼ÖÂÉϴλñÈ¡µÄaccess_tokenʧЧ¡£

¡¡¡¡

¡¡¡¡µÚ¶þ²½»ñÈ¡jsapi_ticket

¡¡¡¡¹Ù·½ÎĵµÊÇÕâÑù˵µÄ£ºjsapi_ticketÊǹ«ÖÚºÅÓÃÓÚµ÷ÓÃ΢ÐÅJS½Ó¿ÚµÄÁÙʱƱ¾Ý¡£Õý³£Çé¿öÏ£¬jsapi_ticketµÄÓÐЧÆÚΪ7200Ã룬ͨ¹ýaccess_tokenÀ´»ñÈ¡¡£ÓÉÓÚ»ñÈ¡jsapi_ticketµÄapiµ÷ÓôÎÊý·Ç³£ÓÐÏÞ£¬Æµ·±Ë¢ÐÂjsapi_ticket»áµ¼ÖÂapiµ÷ÓÃÊÜÏÞ£¬Ó°Ïì×ÔÉíÒµÎñ£¬¿ª·¢Õß±ØÐëÔÚ×Ô¼ºµÄ·þÎñÈ«¾Ö»º´æjsapi_ticket ¡£

¡¡¡¡1.²Î¿¼ÒÔÏÂÎĵµ»ñÈ¡access_token£¨ÓÐЧÆÚ7200Ã룬¿ª·¢Õß±ØÐëÔÚ×Ô¼ºµÄ·þÎñÈ«¾Ö»º´æaccess_token£©£º../15/54ce45d8d30b6bf6758f68d2e95bc627.html

¡¡

1.±¾Õ¾×ñÑ­ÐÐÒµ¹æ·¶£¬ÈκÎתÔصĸå¼þ¶¼»áÃ÷È·±ê×¢×÷ÕߺÍÀ´Ô´£»2.±¾Õ¾µÄÔ­´´ÎÄÕ£¬ÇëתÔØʱÎñ±Ø×¢Ã÷ÎÄÕÂ×÷ÕߺÍÀ´Ô´£¬²»×ðÖØÔ­´´µÄÐÐΪÎÒÃǽ«×·¾¿ÔðÈΣ»3.×÷ÕßͶ¸å¿ÉÄܻᾭÎÒÃDZ༭Ð޸Ļò²¹³ä¡£

Ïà¹ØÎÄÕÂ
  • transformʵÏÖµÄʱÖÓЧ¹û - СÊýµã¾ÍÊÇÎÊÌâ

    transformʵÏÖµÄʱÖÓЧ¹û - СÊýµã¾ÍÊÇÎÊÌâ

    2016-08-18 17:00

  • ÈçºÎ¶ÀÁ¢¿ª·¢Ò»¸öÍøÂçÇëÇó¿ò¼Ü - Ö¸¼âϵÄÓÄÁé

    ÈçºÎ¶ÀÁ¢¿ª·¢Ò»¸öÍøÂçÇëÇó¿ò¼Ü - Ö¸¼âϵÄÓÄÁé

    2016-08-15 11:00

  • ÊÓ´í¾õÉý¼¶°æ£º¶à¸öÊÓ´í¾õЧ¹ûʵÏÖ - ÇàÓñ·ü°¸

    ÊÓ´í¾õÉý¼¶°æ£º¶à¸öÊÓ´í¾õЧ¹ûʵÏÖ - ÇàÓñ·ü°¸

    2016-08-12 11:00

  • ÓÃTypeScript¿ª·¢Vue¡ª¡ªÈçºÎͨ¹ývueʵÀý»¯¶ÔÏó·ÃÎÊʵ¼ÊViewModel¶ÔÏó - СС²×º£

    ÓÃTypeScript¿ª·¢Vue¡ª¡ªÈçºÎͨ¹ývueʵÀý»¯¶ÔÏó·ÃÎÊʵ¼ÊViewModel¶Ô

    2016-08-12 10:00

ÍøÓѵãÆÀ
Í