TL;DR: An implementation method for the course of principles of computer composition virtual experiment system based on browser client technology to increase flexibility, reduce the complexity of software, and improve the experimental effect is proposed.
Abstract: This paper proposes an implementation method for the course of principles of computer composition virtual experiment system based on browser client technology to increase flexibility,reduce the complexity of software,and improve the experimental effect. This system is highly interactive and extensible as it is fully realized by browser client technologies. It uses JAVASCRIPT to define component library,uses CSS rendering chip and other components,uses VML to draw the connecting line,and uses HTML5 File API to read and write files. A single-threaded scheduling algorithm based on the queue is presented to effectively solve problems of data transfer and component dispatch between many components. This system simulates components from the perspective of functions and realizes simulative operation of the experimental circuit. In this system,a user can design circuit by himself and can design complicated model machine. This system has been applied in experimental teaching,and achieved good teaching effects.
TL;DR: This article is the use of HTML5 File API to upload video files in the original form on the basis of form, use the function of slice inside the HTML5 file API for the split file upload, to achieve the result of no refresh upload files.
Abstract: The function of upload file is an important web page designs. Traditional file upload function for file upload function by HTML form and $_FILES system function, has the advantages of convenience, can cope with a relatively small file upload. The traditional HTML way has been diff icult to meet the upload of the oversized file. Service not only to open a link waiting for this file is uploaded, but also to allocate the same size of memory to save this file. In the case of large concur rency may cause a great pressure on the server. This article is the use of HTML5 File API to upload video files in the original form on the basis of form, use the function of slice inside the HTML5 file API for the split file upload, to achieve the result of no refresh upload files. Have a valid pra ctical significance.