SlideShare uma empresa Scribd logo
1 de 25
cms
Python+YUI compressor+Google compressor
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
STEP 2
md5Hash( '../' + ochild.text)




    if(( oldMD5 != newMD5))




ochild.set( 'ver',str(int(ver) + 1) )
pub

      pub   +1
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 =>        !
STEP1
STEP2



        <MM name=”            ”>
         <div>
           <BB name=”          1”>
           <a href=”##text:   1”>##text:   1</
           a>
           </BB>
         </div>
STEP3
l-xxxxx

m-xxxxx

t-xxxxx

btn-xxxx

i-xxxxx
l-g-16



l-g-3   l-g-13
Python+ImageMagic
convert "+ filePath +" -compress JPEG -quality 85


activity     300M           200M
...



...
...

...

      ...

            ...

...
notepad++
firefox+firebug
BCompare(       )
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'
          });
     });
YUI 3
Lighter
Faster
More Consistent
More Powerful
More Securable
YUI Global Object

YUI           ,              .

YUI().use(‘*’,function(Y){

 
 //

 })
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){//});
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’);

Mais conteúdo relacionado

Destaque

Resultados pruebas diagnosticas
Resultados pruebas diagnosticasResultados pruebas diagnosticas
Resultados pruebas diagnosticassamyjdam
 
Chapter iii (rizal)
Chapter iii (rizal)Chapter iii (rizal)
Chapter iii (rizal)jhosham
 
Curriculo Al Servicio Del Aprendizaje 0
Curriculo Al Servicio Del Aprendizaje 0Curriculo Al Servicio Del Aprendizaje 0
Curriculo Al Servicio Del Aprendizaje 0Adalberto
 

Destaque (6)

Como é bom...
Como é bom...Como é bom...
Como é bom...
 
A002 bisnis dan etika
A002 bisnis dan etikaA002 bisnis dan etika
A002 bisnis dan etika
 
Resultados pruebas diagnosticas
Resultados pruebas diagnosticasResultados pruebas diagnosticas
Resultados pruebas diagnosticas
 
Chapter iii (rizal)
Chapter iii (rizal)Chapter iii (rizal)
Chapter iii (rizal)
 
Inseguridad IPv6
Inseguridad IPv6Inseguridad IPv6
Inseguridad IPv6
 
Curriculo Al Servicio Del Aprendizaje 0
Curriculo Al Servicio Del Aprendizaje 0Curriculo Al Servicio Del Aprendizaje 0
Curriculo Al Servicio Del Aprendizaje 0
 

消费导航项目小结

  • 1.
  • 2. cms
  • 4. 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
  • 6. md5Hash( '../' + ochild.text) if(( oldMD5 != newMD5)) ochild.set( 'ver',str(int(ver) + 1) )
  • 7. pub pub +1
  • 8. 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 => !
  • 10. STEP2 <MM name=” ”> <div> <BB name=” 1”> <a href=”##text: 1”>##text: 1</ a> </BB> </div>
  • 11. STEP3
  • 13. l-g-16 l-g-3 l-g-13
  • 14.
  • 15. Python+ImageMagic convert "+ filePath +" -compress JPEG -quality 85 activity 300M 200M
  • 16.
  • 18.
  • 19. ... ... ... ... ...
  • 21. 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' }); });
  • 22. YUI 3 Lighter Faster More Consistent More Powerful More Securable
  • 23. YUI Global Object YUI , . YUI().use(‘*’,function(Y){ // })
  • 24. 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){//});
  • 25. 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’);

Notas do Editor