Coder Social home page Coder Social logo

psadvtechjsjq's Introduction

####psadvtechjsjq #####intro ######1 see canvasv1 no param. ######2 see canvasv2 six param. #######3-7 see respect html file

#####events ######propagation events bubble up the dom until handled

#####using jQuery Deferred Obj ######common pattern christmas tree effect, many indentation ######Deferred object get use deferred, load does not. ######Negative testing. using then(succ,fail) function, if fail multiple times, only return one error
diff of cb and promise. The done and fail methods are registering a handler function with the deferred object. There is nothing to prevent registering multiple handlers for the done and fail methods.(in fact if we save the deferred object as a var, we can attach a handler even afer the object has been resolved or rejected. A cb can only be called once from the original process that received it as a parameter. Assuming we are making a call to jq get , if we pass a cb to that method,it will only get executed once the get method completes. There is no way to expand the func of the callback after is been executed because the get method has completed.

If we ue deferred object that isreturned from the get method instead,we can attach as many done or fail handlers as we wish in any order base on conditional processing. We can even add a handler based on the result of the get.

######Deferred methods defer4-promise.html observe the results

######Dynamic pages ######creating deferred proj The when method return a deferred object.as soon as any of the loadSec return a deferred that is rejected, the enclosing object used by the when method is also rejected, the satte cannot change again ######using when we reject our deferred object, that immediately rejects the deferred object used by the when block

psadvtechjsjq's People

Contributors

rengokantai avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.