![]() |
Erstellt von Juan Carlos Joya Carvajal
vor etwa 6 Jahre
|
|
Frage | Antworten |
Callbacks | When an ajax call is done the response (success, error) is a callback. |
Promises | Promises are a far cleaner solution to writing asynchronous code than callbacks. The resulting code that’s created is easier to read and is often written the order the application will execute. So it can be easier to trace through code in your head. |
Encoding | When you work with AJAX (or other communication between client and server), you need to ensure that the information is sent in a form that’s suitable for transmission. You do that using encoding. If you don’t use encoding, it’s quite possible that some information won’t be received exactly as it was sent. This is especially true for some special character information—for example, spaces, quotation marks, and so on. http://pressbin.com/tools/urlencode_ urldecode/ |
Shims and Polyfills | Shims and polyfills are software components designed to allow older browsers to run more modern code. A shim is a piece of code that intercepts existing API calls on a browser and implements different behavior, which enables standardizing APIs across different environments. So, if two browsers implement the same API differently, you could use a shim to intercept the API calls in one of those browsers and make its behavior align with the other browser. A polyfill is a piece of JavaScript that can “implant” missing APIs into an older browser. For example, shims and polyfills enable older ECMA5 browsers to run ECMA6 code. |
Möchten Sie mit GoConqr kostenlos Ihre eigenen Karteikarten erstellen? Mehr erfahren.