Tag:Address bar

  • 【GO】go-swagger

    Time:2022-5-4

    1. Installation install 2. Simple use main.go package main import ( “github.com/gin-gonic/gin” “swagger_study/handler” ) func main(){ var server *gin.Engine server =gin.Default() handler.InitHandlers(server) server.Run() } handler/api.go package handler import ( “github.com/gin-gonic/gin” ginSwagger “github.com/swaggo/gin-swagger” “github.com/swaggo/gin-swagger/swaggerFiles” “swagger_study/handler/test” _ “swagger_study/docs” ) // @title SwaggerTest Server // @version 0.1 // @description SwaggerTest Server // @in header // @license.name Apache 2.0 […]

  • React router (V6) notes at hand two

    Time:2022-4-20

    I Change to your own unique address bar information In the address bar, we can often see the name of the company or the general content of the current page. In fact, we can also modify the path information in the address bar. It is very simple. In<Link>You can set it in the to attribute […]

  • Firefox cannot sync bookmarks after signing in

    Time:2022-2-6

    After Firefox signed in, it was found that bookmarks could not be synchronized.Please follow the steps below.1. Enter about: config in the address bar and click below to receive the risk and continue.2. Search: identity fxaccounts. autoconfig. uriKey value filling:https://accounts.firefox.com.cn After modification, click synchronize to synchronize to bookmark. Note: you need to complete login before […]

  • How is the OCC API of the Spartacus product details page of SAP e-commerce cloud triggered

    Time:2022-1-29

    When accessing the following URL,http://localhost:4200/powerto… We can see the following OCC API calls: https://<host>:9002/occ/v2/powertools-spa/cms/pages?pageType=ProductPage&code=3755211&lang=en&curr=USD The OCC API is CMS page connector. TS triggered. The connector must be called by effect. When calling, the pagecontext has been parsed. How is this product page of type resolved? Add print statement: Sure enough, it was called by page […]

  • How to get the pagecontext of the Spartacus product details page of SAP e-commerce cloud?

    Time:2022-1-28

    Debugging entry: this routingService. getNextPageContext() This page context is directly read from the store and cannot be obtained by debugging the selector. We have learned before that when the angular router framework successfully matches the URL of the browser address bar to the routermodule used by the developer When the routes array passed in by […]

  • Laravel installation swagger

    Time:2022-1-28

    1、 What is swaggerSwagger is a normative and complete framework for generating, describing, invoking and visualizing restful web services. 2、 Swagger installation composer require “darkaonline/l5-swagger” 3、 DispositionLaravel configuration after successful installationAdd in APP / providers / appserviceprovider $this->app->register(\L5Swagger\L5SwaggerServiceProvider::class); perhapsIn config / APP PHP add L5Swagger\L5SwaggerServiceProvider::class, In app \ http \ controllers \ controller PHP write […]

  • The chrome 91 version resolves cross domain requests for samesite

    Time:2022-1-11

    Personal websitehttps://kuangyx.cn Before version 91 Address bar entry** chrome://flags **And enter Enter * * samesite by default cookies * * in the search field to search. There will be two settings Change to * * disabled * * and restart the browser The flag setting of version 91 has been removed. You need to modify […]

  • Front end mounting technique 108 (IV) – swing together

    Time:2022-1-4

    Washing and practicing Sleepless in the middle of the night,Push the door to the courtyard,The lotus trees in the yard are ripe,A red fruit fell quietly,I cut a piece of moonlight to cover my heart. The insect sound in July is the three hundred Tang poems that blew up the line,The rules are broken,A tin […]

  • Analysis of angularjs $location html5mode

    Time:2021-12-25

    About HTML5 history API reference material:http://diveintohtml5.info/history.htmlThe reference materials are in English, the content is relatively simple, and simple translation will be done at the weekend to facilitate children’s shoes struggling in English. Before H5, a URL corresponds to a page. No matter how you modify the address bar address, the page will be completely refreshed, […]

  • Urlparameter configuration principle of Spartacus UI of SAP e-commerce cloud

    Time:2021-12-24

    A colleague asked me the following questions: When Spartacus is started locally, open localhost: 4200, redirect to base site by default, and the URL is automatically changed to:http://localhost:4200/electro… How to avoid displaying electronics spa / en / USD / after localhost: 4200? In the file projects \ storefrontapp \ SRC \ app \ Spartacus \ […]

  • The difference between $router and $route, the difference between route jump methods name and path and parameter transfer methods params and query

    Time:2021-12-11

    1、 The difference between $router and $route$Router: it is a routing operation object and only writes objects$route: route information object, read-only object //$router operation route jump //String this.$router.push(‘home’) //Object this.$router.push({ path: ‘home’ }) //Named route this.$router.push({ name: ‘user’, params: { userId: 123 }}) //With query parameters, it becomes / register? plan=123 this.$router.push({ path: ‘register’, query: […]

  • JS often has regular expressions

    Time:2021-11-5

    Vue limits that only 32-digit Chinese name, 11 digit mobile phone number and 6 digit verification code can be entered watch: { ‘bindForm.name'(val) { let pattern = /[^\u4e00-\u9fa5]+/ this.bindForm.name = val.replace(pattern, ”) if (val.length > 32) { this.bindForm.name = val.substring(0, 32) } this.checkIsComplete() }, ‘bindForm.phone'(val) { if (val.length > 11) { this.bindForm.phone = val.substring(0, 11) […]