Test method during development

When developing in the background, many tests need to be performed to facilitate checking whether the data is correct. Here are several methods:

1. Enter print(1) where you need to test. This method is simple and rude. It can not only check whether the function is executed correctly, but also check whether your logical thinking is correct;

2. Console.log() on the web page;

3. The most powerful method: breakpoints;

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325134091&siteId=291194637