Category:Front-End

  • Made a build log push via Node + SSE

    Time:2022-10-11

    What is SSE? The full name of SSE is Server Sent Event, which means that the server dispatches events. A web page to get new data usually needs to send a request to the server, that is, the page requested to the server. Using server-sent events, the server can push data and information to our […]

  • [MongoDB for Java] Java operates MongoDB

    Time:2022-10-11

    1. Create a JavaProject project below and import the downloaded driver package. You can use mongoDB in Java, the directory is as follows: Second, Java operation MongoDB example Before this example, you need to start the service of mongod.exe. After startup, the following programs can be executed smoothly; 1. Create SimpleTest.java to complete simple mongoDB […]

  • HTML & CSS Visual Design

    Time:2022-10-11

    TextText Text Align Text Align Most web content is text. in CSStext-alignProperties to control the alignment of the text. text-align: justify; Spaces the text so that each line is of equal width. text-align: center; aligns the text to the center. text-align: right; aligns the text to the right. text-align: left; is the default, it aligns […]

  • How to develop a custom middleware extension for SAP UI5 Tools – Custom Middleware Extension

    Time:2022-10-10

    Custom middleware extension (Custom Middleware Extension) consists of ui5.yaml and a custom middleware implementation. It can be a standalone module or part of an existing UI5 project. Below is aui5.yamlexample of: specVersion: “2.6” kind: extension type: server-middleware metadata: name: markdownHandler middleware: path: lib/middleware/markdownHandler.js Custom middleware extensions can be independent modules that are handled as dependencies, […]

  • The difference between Ajax, Fetch, and Axios

    Time:2022-10-10

    All three are used for network requests, but the dimensions are different between them Ajax is a general term for technology, not a specific implementation Fetch is a specific API launched natively. It is the same latitude as XMLHttpRequeset. Both are used to implement ajax. Fetch syntax is simpler and easier to use, and supports […]

  • 51-layui popupRight popup page, non-template html

    Time:2022-10-10

    showInvoice:function (obj) { active.showPage(obj.data,’company/companyInvoiceLayerList4Admin.jsp’,’Invoice Management’) }, showPage:function (data,page,title) { top.layui.admin.popupRight({ id: ‘LAY_’+elemId+’PopupLayer’ ,title:title?title:false ,type: 2 ,content: page ,area: layui.setter.popup_layer_area ,success: function(layero,index){ top.window.formData = data; } ,btn: [‘close’] ,btnAlign: ‘c’ }); },

  • Template syntax {{}} formatting

    Time:2022-10-10

    used in template syntax Declare function in filter The complete code is as follows <li class=”news_li” v-for=”(item,index) in noticeList” :key=”item.id” v-on:click=”newsClick(item.id)”> <span>{{ item.publishTime | formatTimer }}</span> <a href=”#”>{{ item.title }}</a> </li> <script> export default { data(){ }, filters: { formatTimer: function (value) { let date = new Date(value); let y = date.getFullYear(); let MM = […]

  • Front-end development documentation

    Time:2022-10-10

    HTML element Semantic tags CSS Selector Inherited properties core module background image clear float position BFC Use attr() to display tooltip JavaScript Basic knowledge Practical Tips memory management JS Mind Map 8 Mind Maps for Learning JS jQuery’s deferred object jQuery study notes Promise Anti-shake throttling Best implementation of deep copy HTTP guide detail Cross-domain […]

  • Review + learn recursion

    Time:2022-10-10

    We continue with a problem of recursion, how can there be closure without recursion 1. The first recursive case is to use recursion to find the factorial, which should be a dictionary. <!DOCTYPE html> <html lang=”en”> <head> <meta charset=”UTF-8″> <meta http-equiv=”X-UA-Compatible” content=”IE=edge”> <meta name=”viewport” content=”width=device-width, initial-scale=1.0″> <title>Document</title> </head> <body> <script> // Use recursion to find […]

  • Introduction to Custom UI5 Server Middleware of SAP UI5 Tools

    Time:2022-10-10

    UI5 Server Extensibility (Extensibility) enables developers to enhance the functionality of UI5 Server. Developers may wish to handle requests differently. For example, adding various headers to the response (a typical application is to avoid cross-domain errors encountered when a local SAP UI5 application accesses the S/4HANA OData service) or parsing the data of a POST […]

  • 10 Useful jQuery Plugins

    Time:2022-10-10

    ​jQuery is the fastest and most concise JavaScript library that simplifies HTML document traversal, event handling, animation and Ajax interactions. With the advent of more and more jQuery plugins, developers can easily integrate the required components into their navigation menus, logos, tabular layouts, short texts, and make them have a specified size or Create a […]

  • Throttling & Stabilization

    Time:2022-10-10

    /** throttling and stabilization The difference between the two Anti-shake: To prevent jitter, “you are shaking first, when will you stop, and you are executing the next step”, when an operation is completed, the number of executions is limited, and multiple intensive triggers are executed only once Throttling: save interactive communication, “don’t worry, come one […]