QA Official

Three Ways for Front End to Send get and post Requests 2019-04-02
1. Send request with XMLHttpRequest object (1)get request var xmlhttp; if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("div").innerHTML=xmlhttp.responseText; } }"GET","forwifestudy/testforget.php?info=123",true); xmlhttp.send(); Note: Any browser except IE5 and IE6 can create an XHR object. In IE, XHR is implemented as an ActiveX object. In IE, the object is

Understanding and Use of Python Multithreading (1) Understanding of join () Function in Threading 2019-04-02
1. The concept of multithreading Multithreading is similar to executing multiple different programs at the same time. Multithreading has the following advantages: Using threads can put tasks in programs that occupy a long time into the background for processing. The user interface can be more attractive. For example, if the user clicks a button to trigger the processing of certain events, a progress bar can pop up to show the

ajax Cross-Domain Setting of http header in jQuery 2019-04-02
This article discusses ajax requests from the following situations: No cross-domain, set http header header header (e.g. authorization);Cross-domain, no http header header set;Cross-domain, set http header header header;In addition, php sends http requests and sets http Header header; Jsonp Personal Understanding, Reference1. ajax request, no cross-domain, set http Header header $.ajax({ type: "post", url:"", dataType: "json" data: {"key":"value"}, // headers : {'Authorization':'Basic bmVvd2F5Oe4lb3dheQ=='},

argv and environment variables under Linux 2019-04-02
Look at the code first #include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { extern char **environ; int i=0; while( argv[i] != NULL ) { printf("%p:%s\n", argv[i], argv[i]); i++; } printf("%p:%s\n\n", argv[i], argv[i]); i=0; char **ptr = argv + argc + 1; /* points to environment, in Un*x */ if ( ptr == environ ) { printf("========== ptr equals environ ==========\n\n"); } while( environ[i] != NULL ) { printf("%p:%s\n",

jquerajax cross-domain POST request 2019-04-02
A cross-domain post request was encountered in the project and a pit was encountered below IE10. CORS is used across domains 1, front-end script <script> function tests(){ //请求类型 为了满足IE8,IE9通过cors跨域请求 var contentType ="application/x-www-form-urlencoded; charset=utf-8"; //var contentType ="text/plain; charset=utf-8"; //contentType ="application/json; charset=utf-8", /* if(window.XDomainRequest){ //for IE8,IE9 contentType

popular science of Android multitasking mechanism (suddenly enlightened series) 2019-04-02
Why don't you need to clear the memory?Back then, the habit of clearing memory has a long history.Before Android was born, when we used Windows , we were always eager to turn off all unused processes, so that we would not " occupy memory", CPU and computer.(Most " security software" is famous for helping users clean up memory and garbage in Windows .) This is the historical reason for cleaning up memory.

threading module in Python 2019-04-02
threading- higher level thread interface source code: Lib/ This module builds a higher level thread interface on top of the lower level thread module.See also mutex and Queue modules. This dummy_threading module is applicable to situations where threading cannot be used due to the absence of thread. note: starting with Python 2.6, this module provides PEP 8-compliant aliases and attributes to replace camelCase's Java-inspired thread API name.This updated API is compatible with the apis of the multiprocessing module.

C++ and java 2019-04-01

HTML Common Tag Learning 2019-04-01
It's been a long time since I touched HTML. It's hard to avoid being a little rusty.Why do you forget what you have learned soon?Some people in Zhihu said that what you have learned is not commonly used, so forgetting is also a common thing. It is the same thing not to use and forget after learning. It is better to forget when you have learned but not to use.

JavaEE Core Technology Brief Introduction 2019-04-01
1. JavaEE Architecture 2. Brief Introduction of . JavaEE's Core Technologies 3. Roles in . JavaEE Platform 4. The currently popular JavaEE platform V. Application of JavaEE  1. .JavaEE Architecture: JavaEE's operating environment defines four types of application components: l applet client lapplication client lweb component lejb component   2. .JavaEE Core Technologies: 13 Kinds   EJB、CORBA、RMI、JSP、Java Servlet、JavaBean、JDBC、XML、…… EJB-Cornerstone of JavaEE: l EJB (Enterprise JavaBeans) :