Tag:Browser

  • Java crawler: use jvppeeter (puppeter) to easily climb Taobao products

    Time:2020-9-20

    Java crawler: use jvppeeter (puppeter) to easily climb Taobao products If you want to crawl a certain treasure’s goods, if you just send a request with httpurlconnection, the failure rate is very high. Generally, if you want to ensure the success rate, you will choose the real browser to grab it. In the past, selenium […]

  • Vue.js To implement the drop-down bounce effect that forbids H5 page in IOS browser

    Time:2020-9-20

    introduce vue-disbounceIt is based onVue.jsCan effectively avoid triggeringh5Page iniosBrowser built-in dropdownbounceeffect. assembly <template> <div :style=”{‘background-color’:backgroundColor }” class=”vd-wrapper” > <div class=”vd” ref=”vd” > <slot></slot> </div> </div> </template> <script> export default { name: “vd”, props: { backgroundColor: { type: String, default: “#ffffff” } }, data() { return {}; }, mounted() { this.vd = this.$refs[“vd”]; this.vd.addEventListener(“touchstart”, this.touchstartEvent); this.vd.addEventListener(“touchmove”, […]

  • Detailed explanation of JSON web token (JWT) and Java project practice

    Time:2020-9-19

    Why do we use token Token, a token, represents the right to perform certain operations, that is, our pass to perform certain operations. 1.1 a long time ago, what did we use for authentication? We all know that HTTP is a stateless protocol: http has no memory for transaction processing and does not save the […]

  • Front end cross domain solutions

    Time:2020-9-19

    What is cross domain? Cross domain is a restriction policy made by browser for security Browser requests must follow the same origin policy: same domain name, same port and same protocol How to solve cross domain problems? There are three ways to solve cross domain problems CORS cross domain Jsonp cross domain Agent cross domain […]

  • Using webpack to package CSS files separately

    Time:2020-9-19

    1、 Preface Some CSS properties need prefixes for different browsers, especially when writing CSS3 animation code, only 5-6 lines of code are needed, but 10-20 lines of code should be written for different browsers. The amount of code directly doubles, which not only increases the development cost, but also interrupts the development ideas and even […]

  • Initial configuration of mobile terminal, compatible with rendering kernel of different browsers

    Time:2020-9-18

    This is the initial header style of mobile terminal layout, which can solve the compatibility problem of different browsers  

  • Netty realizes the long connection between server and client through websocket

    Time:2020-9-18

    Server code import com.chinadaas.bio.chinadaasbio.webSocket.handler.ServerHandler; import io.netty.bootstrap.ServerBootstrap; import io.netty.channel.ChannelFuture; import io.netty.channel.ChannelInitializer; import io.netty.channel.ChannelOption; import io.netty.channel.ChannelPipeline; import io.netty.channel.nio.NioEventLoopGroup; import io.netty.channel.socket.SocketChannel; import io.netty.channel.socket.nio.NioServerSocketChannel; import io.netty.handler.codec.http.HttpObjectAggregator; import io.netty.handler.codec.http.HttpServerCodec; import io.netty.handler.codec.http.websocketx.WebSocketServerProtocolHandler; import io.netty.handler.logging.LogLevel; import io.netty.handler.logging.LoggingHandler; import io.netty.handler.stream.ChunkedWriteHandler; public class Server { public static void main(String[] args) throws Exception { NioEventLoopGroup boosGroup = new NioEventLoopGroup(1); NioEventLoopGroup workerGroup = new NioEventLoopGroup(); try […]

  • Specific meaning of parameters in HTTP request header

    Time:2020-9-17

    As a front-end development, it is necessary to understand that browsers send HTTP requests. 7 steps of HTTP request 1. Establish TCP link 2. The browser sends a request (get / sample)/ hello.jsp HTTP/1.1) 3. Request header sent by browser 4. Server sends response (HTTP / 1.1200 OK) 5. The server sends the response header […]

  • Tomcat, HTTP summary 1

    Time:2020-9-17

    Tomcat, HTTP summary 1 Server overview What is a server? The server is divided into server hardware and server software. Only when the server software is installed on the hardware server can it provide external services. Server hardware: a computer with an independent IP address on the Internet Server software: it is a program on […]

  • Arrangement of knowledge points in February 2020

    Time:2020-9-17

    *Note: This article is the collation of knowledge points in the process of work. The price comparison of things involved is disorderly. If there is any mistake, please correct and guide 1: Iframe session missing 2: The part of Vue exceeding the number is shown with ellipsis 1. Use the filter in VueDisplay effect123456···123456HTML code […]

  • Building a professional design tool on Web Platform

    Time:2020-9-16

    We want a future design tool to be like this: anyone, anywhere, can easily use it and get the content produced by it. So we created figma as a browser based cloud service that can provide collaborative design capabilities. When we started working on figma, we understood that it was a challenge. To accomplish this […]

  • [ymfe] how to reach 60fps

    Time:2020-9-16

    Wang Yu He joined qunar in 2016 and is currently working as a front-end Engineer in the front end architecture group (ymfe) of qunar platform division. Welcome to the team blogYMFE( http://ymfe.tech )See more technologies. Not long ago, I shared some content about building fluent animation on ymfe conf. this article is the text version […]