[Front-end knowledge related -JS] understanding of the mobile terminal and Hybrid development?
Others
2019-11-24 15:38:49
views: null
What 1.hybrid is why the use of hybrid it?
- concept:
- Hybrid and mixed-use development is the front-end client
- Need front-end developers and client developers to accomplish
- Some links may also be related to the server end
- Large front-end: Web, APP, front-end and server-side interaction process
- Existence value:
- Fast iterative update [key] without APP audit (hybrid technology could one day on the line several times)
- Experience smooth (and Native development experience substantially similar)
- Reduce development costs and communication, two-terminal common set of code
- webview:
- APP is a divalent group of (App can Webview, it may have)
- H5 is mainly used to load the page, is a small browser kernel
- file: // protocol
- file protocol: local files, fast
- http (s): network load, slow
- The expansion of knowledge: Web standards are what it?
2.hybrid specific implementation process?
2.1 usage scenarios
- Not all scenarios are suitable for use hybrid
- Use NA: the ultimate experience requirements, changes are not frequent (such as headlines Home)
- Using hybrid: a high experience requirements, frequent changes (such as news headlines details page)
- Use H5: No experience, not commonly used (such as reporting and feedback page)
2.2 realization
- Good front-end static pages (HTML, CSS, JS), the documents to the client
- The client front end to get the static pages, stored as files in the APP
- Client in a Webview
- Using the file protocol to load the local static files
3. introduce hybrid and update process on the line?
3.1 advantage
- A better user experience, experience is consistent with NA
- Fast iterations without app review [key]
3.2 Disadvantages:
- High development costs: FBI, test, check the bug are more trouble
- High operation and maintenance costs. (Platform Maintenance)
3.3 application scenarios:
- hybrid: a stable product functionality, high user experience, frequent iterations
- H5: word operating activities (such as red XX), or unusual features
4. How JS front-end and client communication?
- JSONP manner similar data request
- Introduction and use of schema Agreement
- The basic form of communication: the ability to call, passing the callback parameter monitor
- Understanding and use of schema Agreement
- Calling code package schema
- The benefits of the built-in on-line: faster, safer
Origin www.cnblogs.com/fecommunity/p/11922134.html