1. A method for testing browser compatibility of a webpage executed by a processor of a computation terminal, comprising: pre-processing source code of the webpage to determine a code type; obtaining, from a memory of the computation terminal, a compatibility rule library according to the code type; conducting syntax parsing of the source code to obtain a syntax tree of the source code; and conducting static analysis of the source code based on the compatibility rule library and the syntax tree; wherein: the compatibility rule library comprises a plurality of regular expressions and a plurality of logical relationships among the regular expressions; the regular expressions include at least: a first pattern matching expression that identifies whether a first section of code exists in the source code, and a second pattern matching expression that identifies whether a second section of code exists in the source code; the logical relationships include at least a logical relationship corresponding to the first pattern matching expression and the second pattern matching expression; and a result of applying the logical relationship corresponding to the first pattern matching expression and the second pattern matching expression indicates whether the source code is incompatible with one or more browsers.