If you are using eval () in your code now, remember that the mantra "eval () is the Devil". This method accepts arbitrary strings and treats them as JavaScript code. When the problematic code is known in advance (not at runtime), there is no reason to use eval (). If the code is dynamically generated at run time, there is a better way to achieve the same goal without using Eval. For example, it would be better and easier to access dynamic properties using square brackets notation://Reverse Example var property = "Name"; alert ("obj." + property); A better var property = "Name"; alert (Obj[property]); using eval () also poses a security risk because the code being executed (example
1. JavaScript Quest: eval () is "devil"
Introduction: JavaScript Quest: eval () is "the Devil"
2. PHP Devil Special Training
Introduction: This class teacher leads us to start to create template, according to teacher's teaching idea, we want such a code to be written: 1, for example I define a variable $name= '; 2, and then I read a template. 3, and then I set up in this template some of their own "display format" (Force lattice). 4, after loading the template can be directly replaced with the above variables.
3. Judging teacher PHP Devil Special Training Note (8)
Introduction: Judging teacher PHP Devil Special Training Note (8)
4. Judging teacher PHP Devil Special Training Note (7)--What's my name?
Introduction: Judging teacher PHP Devil Special Training Note (7)--What's my name?
5. Judging teacher PHP Devil Special Training Note (4)
Introduction: Judging teacher PHP Devil Special Training Note (4)
6. Judging teacher PHP Devil Special Training Note (5)
Introduction: Judging teacher PHP Devil Special Training Note (5)
7. Judging teacher PHP Devil Special Training Note (3)
Introduction: Judging teacher PHP Devil Special Training Note (3)
8. Judging teacher PHP Devil Special Training Note (1)
Introduction: Judging teacher PHP Devil Special Training Note (1)
9. Devil Special training Camp judging teacher PHP Devil Special Training Note (2)
Introduction: Devil Special Training camp: Devil Special training Camp judging teacher PHP Devil Special Training Note (2): First, this lesson will learn a few lazy functions: 1, File_put_contents (PHP 5, PHP 7) file_put_contents — Writes a string to the file description int file_put_contents (string $filename, mixed $data [, int $flags = 0 [, Resource $context]])
10. Judging teacher PHP Devil Special Training Note (2), judging Devil _php Tutorial
Introduction: Judging teacher PHP Devil Special Training Note (2), judging Devil. Judging teacher PHP Devil Special Training Note (2), judging Devil One, this lesson will learn several lazy functions: 1, File_put_contents (PHP 5, PHP 7) file_put_contents Write a string