Home > Web Front-end > JS Tutorial > body text

javascript eval(func()) usage example_javascript skills

WBOY
Release: 2016-05-16 17:10:26
Original
939 people have browsed it

The function of eval is actually very simple. It is to pass a string to the JS interpreter, and the Javascript interpreter will interpret the string into Javascript code and execute it.

Take the simplest example:

Copy the code The code is as follows:

Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template