消费导航项目小结

400 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
400
On SlideShare
0
From Embeds
0
Number of Embeds
5
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

























  • 消费导航项目小结

    1. 1. cms
    2. 2. Python+YUI compressor+Google compressor
    3. 3. STEP 1 static css js pub config tools user persn admin-global.js admin.xml compiler-google.jar admin-global.css admin admin front.xml compiler-yahoo.jar front front front-core.css user.xml build.py index.css index.js front-index.css personal.xml front-index.js
    4. 4. STEP 2
    5. 5. md5Hash( '../' + ochild.text) if(( oldMD5 != newMD5)) ochild.set( 'ver',str(int(ver) + 1) )
    6. 6. pub pub +1
    7. 7. CMS 1. <CMS name=”1”></CMS> <MM name=” ”> 2. <BB name=” 1”> <a href=”##text: 1”>##text: 1</a> </BB> </MM> ##text: 1 => http://www.alipay.com 3. ##text: 1 => !
    8. 8. STEP1
    9. 9. STEP2 <MM name=” ”> <div> <BB name=” 1”> <a href=”##text: 1”>##text: 1</ a> </BB> </div>
    10. 10. STEP3
    11. 11. l-xxxxx m-xxxxx t-xxxxx btn-xxxx i-xxxxx
    12. 12. l-g-16 l-g-3 l-g-13
    13. 13. Python+ImageMagic convert "+ filePath +" -compress JPEG -quality 85 activity 300M 200M
    14. 14. ... ...
    15. 15. ... ... ... ... ...
    16. 16. notepad++ firefox+firebug BCompare( )
    17. 17. YUI 3 YUI({ base: "../../build/", timeout: 10000, charset:'utf-8', combine:true, modules:{ calendar:{ type:'js', path:'calendar/calendar.js', requires:['node'] } } }).use('calendar', function(Y){ var calendar = new Y.Calendar({ el: '#J_A' }); });
    18. 18. YUI 3 Lighter Faster More Consistent More Powerful More Securable
    19. 19. YUI Global Object YUI , . YUI().use(‘*’,function(Y){ // })
    20. 20. Event Event 1.dom // Y.one(‘#J_Taget’).on(‘click’,function(e){//code}); Y.on(‘click’,function(){//code},’#J_A’); 2. // overlay.on(‘show’,function(e){//}); // after overlay.after(‘show’,function(e){//});
    21. 21. Node Node html node Y.one(‘#J_A’).addClass(‘ba’).set(‘innerHTML’,””); var node=Y.one(‘#J_B’); node.on(‘click’,function(e){}); node.addClass(‘ba’); node.getXY(); node.appendChild(aNode); node.cloneNode(); node.previous(); node.contains(aNode); node.toggleClass(‘enabled’);

    ×