Joke Collection Website - Public benefit messages - How to obtain the source code of web pages in Yi language

How to obtain the source code of web pages in Yi language

How to obtain the source code of Yi language web page;

1. First run the main program Easy Language, and the new project dialog box pops up. Select the Windows window program and click OK to enter the Windows window programming interface. As shown in the figure below:

2. Next, drag and drop a label component, two edit box components, a button component and a group box component. Put them in the correct position and set the width and height of the window to the correct size. Ensure that the windows are simple and beautiful. As shown in the figure below:

3. After adjusting the interface, modify the window title, label title, grouping box title and button title into corresponding contents, and name the edit box and button components. Prepare to write program code.

The next step is to write the code. Under the "_ button _ get source code _ clicked" event subroutine, write the following code edit box _ Web page source code. Content = to text (HTTP reading file (edit box _ URL. Content)), as shown in the figure below:

5. After the code is written correctly, enter the debugging stage. Press F5 to run the program. Take the website of Baidu Experience as an example, and then click the "Get Source Code" button to wait for the program to be executed. As shown in the figure:

6. According to the feedback from the edit box of the web page source code, if there is garbled code in the source code, it is usually the problem of coding mode. At this time, transcoding is needed, and you can see the normal code. Then, the code also needs to make some minor changes. As shown in the figure:

7. Retest the program. As can be seen from the feedback results of the edit box of webpage source code, the webpage source code read this time is correct.