Ç°¶ËÏîÄ¿´Ó0µ½1µÄ¸ÐÎò
È¥Äê6Ô·Ý×óÓÒ£¬¼ÓÈëÁËÒ»¸ö´´Òµ¹«Ë¾£¬ºÜÐÒÔË×öÁËÒ»¸ö´ÓÁ㿪ʼµÄÏîÄ¿£¬Ç°¶Ë¹¤³ÌÓÉÎÒÒ»ÊִÆðÀ´£¬²¢²»¶Ïµü´ú¹¦Äܵ½ÏÖÔÚ£¬ÓÐÐí¶àµÄ¸ÐÎòÐĵã¬ÔÚÕâÀïдµã×ܽá
È·¶¨¿ò¼Ü¡¢¼¼ÊõµãÒ»¸öÏîÄ¿µÄ¿ªÊ¼£¬ÌرðÊǷḻ¶àÑùµÄÇ°¶Ë¹¤³Ì£¬Ê×ÏÈÒ»¶¨ÒªÈ·¶¨ºÃ²ÉÓõĿò¼ÜºÍ¼¼Êõµã¡£2016Äêvue.jsÈç»ðÈçݱ£¬webpackÇ¿ÊÆáÈÆ𣬵«ÊÇÊÇ·ñ¾Í¿ÉÖ±½ÓÄõ½ÏîÄ¿ÖиãÆðÄØ£¿´ð°¸ÊÇ·ñ¶¨µÄ£¬Ò»¸öеļ¼ÊõÈç¹û×Ô¼º»òÍŶÓÖгÉÔ±¶¼»¹ÔÚѧϰÃþË÷µÄ¹ý³Ì£¬Êǿ϶¨²»ÄÜÔÚÉú²ú»·¾³ÖÐʹÓõģ¬¸üºÎ¿öÕâÊǸö´´ÒµµÄÍŶӣ¬Ã»ÓгÉÊìÍêÕûµÄÇ°¶ËÍŶӡ£ËùÒÔÎÒµ±Ê±»¹ÊÇ×ßÀÏÌ×·£¬jqueryΪºËÐÄ£¬fastclick¸¨Öú£¬requireJs°´Ðè¼ÓÔØ£¬arttemplate×öÄ£°åäÖȾ£¬ºËÐÄUIÀà¿âʹÓÃjqueryWeUI£¬¼ÓÉÏsassÔ¤±àÒëÑùʽÎļþ£¬gulp´ò°ü¹¹½¨£¬£¨ºǫ́ÊÇ΢·þÎñ¼Ü¹¹£¬maven¹¹½¨£¬springMVC+mybatis£¬´Ë¹¤³ÌΪh5Ç°Öù¤³Ì£©ÕâÑùÒ»À´¾Í»ù±¾ÉÏÂú×ãÌõ¼þ£¬¿ÉÒÔ¿ª¹¤ÁË¡£
¿ª·¢¹¤¾ß²»Í¬µÄ¿ª·¢¹¤¾ß¿ÉÄÜÔÚչʾ¸ñʽÉÏÓÐÒ»¶¨µÄ²î±ð£¬ËùÒÔÒ»¸öÍŶÓ×îºÃ»¹ÊÇÄÜͳһµÄ¿ª·¢¹¤¾ß¡£ºǫ́һ°ãʹÓÃeclipse£¬Ç°¶ËÎÒÍƼöʹÓÃsublime£¬ÒÔ¼°Ïà¹ØµÄ²å¼þ£º
¼ÈÈ»ÊǶà¸öÈËͬʱ¿ª·¢£¬¿Ï¶¨»áÓÐһЩ´úÂë·ç¸ñÉϵÄÒìͬ£¬È»¶øΪÁË·½±ãºóÆÚά»¤£¬±ØÐèÖƶ¨Ò»Ð©Ïà¹ØµÄ¹æ·¶¡£È磺
Ò»¸öÏîÄ¿µÄĿ¼½á¹¹¾ÍÏñÈ˵ĹǼÜÒ»ÑùÖØÒª£¬¶ÔÓÚÈÕ½¥µü´ú°æ±¾Ô½À´Ô½¶àµÄÇ°¶ËÏîÄ¿£¬Èç¹ûûÓÐÒ»¸öºÃµÄĿ¼½á¹¹»áÏԵ÷dz£Ó·Ö×£¬ÄÑÒÔά»¤£¬ÒÔÏÂÕâ¸ö½ØͼÊÇÎÒÏÖÔÚÕýʹÓõÄĿ¼£¬Ò²»¹ÓÐÐèÒª¸Ä½øµÄµØ·½£¬×öÒ»¸ö²Î¿¼£º
¶¨Òåreadme.md½«¹æ·¶¹æÔò£¬ÎĵµÄ¿Â¼¡¢wikiÁ´½ÓµÈ˵Ã÷·ÅÔÚreadme±Ø¶ÁÎĵµÀï
¶¨Òåconfig.jsÈç¹ûÄãÊÇʹÓÃrequirejsµÄÏîÄ¿£¬¿Ï¶¨Óиöconfig.jsÎļþ£¬Õâ¸öÎļþÿ¸öÒ³Ã涼»áÒýÓ㬲¢ÇÒÊÇÔÚÒ³Ãæ¼ÓÔØjsµÄ¿ªÊ¼Í¬²½ÒýÓ᣹ٷ½Ëµ·¨ÊÇÕâ¸öÒ³Ãæ·ÅjsÎļþµÄkey-valueÐÎʽÅäÖÃÄØ£¬¶øÎÒÏ°¹ßÔÙjsÅäÖÃ֮ǰÔÙ¶¨Ò»¸öwindow¶ÔÏóµÄÏîĿΨһ×Ó¶ÔÏó£¬ÔÙ½«ÏîĿһЩ³£Óõij£Á¿Ò²¶¨ÒåºÃ£¬ÒÔ¼°ÇëÇó״̬Âë¡¢url»ã×Ü£¬ÕâÑù¼«ÓÐÀûÓÚºóÐøά»¤£¬È磺
//ÏîÄ¿µÄÈ«¾ÖΨһ¶ÔÏó window.li = { version: 20170301,//µ±Ç°°æ±¾ºÅ£¬´ò°üʱÓÃgulp×Ô¶¯±ä¸ü errorTips: '°¥Ó´£¬ÍøÂçºÃÏñÓеãÎÊÌâÁË..',//ÎÞÍøÂçÌáʾ timeout: 1000*60*60*24*20,//µÇ¼ʧЧÔÝʱΪ20Ìì _MOBILE: 'http://h5.liliangel.cn/base/mobile',//ÌøתÊÖ»úÒ³Ãæ _ROOT: 'http://www.liliangel.cn',//²âÊÔÓòÃûµØÖ· _XHR: '/rest/',//ajaxÇëÇóǰ׺ _CORS: '/cors/',//¿çÓòÇëÇóǰ׺ _STATIC: 'http://static.liliangel.cn',//¾²Ì¬×ÊÔ´ÓòÃû _WX: 'http://h5.liliangel.cn/'//΢ÐÅh5·þÎñÆ÷µØÖ· } //ËùÓÐÇëÇó״̬Âë li.code = { SUCCESS: 600, //³É¹¦ PHONE_EXIST: 603 //ÊÖ»úºÅÂëÒѾ´æÔÚ } //ËùÓÐÇëÇóurl li.api = { sendMessage: 'wechat/sendMessage' //·¢ËÍÏûÏ¢url } //¾²Ì¬×ÊÔ´ÅäÖà require.config({ urlArgs: "v=" + li.version, baseUrl : "http://www.cnblogs.com/", paths: { jquery:'plugin/jquery/jquery-1.9.0.min', artTemplate: 'plugin/template/artTemplate-3.0', }, shim: { bootstrap: { deps: ['jquery'], exports: '$' } }, waitSeconds: 15 }); ¶¨Òåcommon.jsÓÃÀ´·ÅÖÃËùÓй«¹²·½·¨£¬Í¬ÑùÒ²ÊÇÿ¸öÒ³Ã涼ÒýÓã¬ÕýÈçÉÏÃ涨ÒåºÃµÄһЩ³£Á¿Ò»Ñù£¬Ò»¸öÏîÄ¿µÄ¿ªÊ¼£¬»¹ÐèҪһЩ·½·¨ÉϵÄ×¼±¸¹¤×÷£¬È磺
ºóÍË
ͨ³£Çé¿öÏ£¬Äã¿ÉÄÜ»á¾õµÃwindow.history.go(-1)¾Í¿ÉÒÔÁË£¬µ«ÊÇÈç¹ûÄãµÄÒ³ÃæͬʱҲҪÓÃÔÚ»ìºÏappÀïʱ£¬¾ÍÐèÒª¿¼ÂÇһЩºÍÔÉú¶Ë½»»¥µÄÎÊÌ⣬ÌøתҳÃæÒ²ÊÇÒ»Ñù£¬Í¨³£Çé¿öÏÂÐèÒª±£Áôµ±Ç°webviewÖØдò¿ªÒ»¸öwebview£¬ËùÒÔ¾¡Á¿½«ºóÍ˺ÍÌøתҳÃæ·â×°Ò»¸öͨÓõķ½·¨£¬·½±ãºóÆÚÌí¼ÓÐ޸ġ£
Åжϵ±Ç°ä¯ÀÀÆ÷³§¼Ò
h5×î¶àµÄ¿ÉÄܾÍÊÇÅжÏÊÇ·ñÊÇ΢ÐÅä¯ÀÀÆ÷ÁË
¡¡