2550mAh Power
JQuery emergence has given us the use of AJAX save a lot of effort, but there are some common problems still have to pay attention. 1, for example, today I use JQuery's "$" error: "$" is not defined. But after I checked, I was obviously in HTML JQuery introduced the Script file as follows: <script type = "text / javascript" backslash src = "jslib / jquery-1.8.2.js"> backslash </ script> syntax Not wrong, is pass, for a moment, his mind a sudden idea "before ordering rules" in the browser when the test, put the introduction of this statement JQuery previously incorporated backslash into all other Script file statements on the transfer backslash through backslash a. From top, we can see that some of the language before the order for the statement is very serious! 2. Also to note is that JavaScript script: Do not add insert line breaks in the line of code. This is a statement after the inclusion of the carriage return backslash line feed into a script after a few lines as follows: var object = {"300001": {name: "The Shanghai Composite Index", yes: 3000.0, tod: 2990.0, now: 3043.92}, "000001": {name: "Shanghai Pudong Development Bank", backslash yes: 23.22, tod: 23.5, now: 22.91}}; alert (object); var object = {"300001": {name: backslash "The Shanghai Composite Index", yes: 3000.0 , tod: 2990.0, backslash now: 3043.929282249536}, "000001": {name: "Shanghai Pudong Development Bank", yes: 23.22, tod: 23.5, now: 22.919232129078754}}; alert (object); var object = {"300001": { name: "The Shanghai Composite Index", yes: 3000.0, tod: 2990.0, now: 3043.929282249536}, "000001": backslash {name: "Shanghai Pudong Development Bank", yes: 23.22, tod: 23.5, now: 22.919232129078754}}; alert (object) ; var object = {"300001": {name: "The Shanghai Composite Index", yes: 3000.0, tod: 2990.0, now: 3043.929282249536}, "000001": {name: "Shanghai Pudong Development Bank", yes: 23.22, tod: 23.5, now: 22.919232129078754}}; alert (object); var object = {"300001": {name: "The backslash Shanghai Composite Index", yes: 3000.0, tod: 2990.0, backslash now: 3043.929282249536}, "000001": {name: "Shanghai backslash Pudong Development Bank ", yes: 23.22, tod: 23.5, now: 22.919232129078754}}; alert (object); var object = {" 300001 ": {name:" The Shanghai Composite Index ", yes: 3000.0, tod: 2990.0, now: 3018.605210375042}, "000001": {name: "Shanghai Pudong Development Bank", yes: 23.22, tod: 23.5, now: 22.51096019958487}}; alert (object); var object = {"300001": {name: "The Shanghai Composite Index", yes: 3000.0 , tod: 2990.0, now: 3018.605210375042}, "000001": {name: "Shanghai Pudong Development Bank", yes: 23.22, tod: 23.5, now: 22.51096019958487}}; alert (object); interpreter in some environments (such as firefox backslash Lane The FireBug backslash the console) During execution, the following error may occur: SyntaxError: unterminated backslash string litera This is because adding a number of line breaks reasons, resulting in an error that there is no interpreter terminated string statement.
Verification code: Please enter the verification code after clicking listening verification code
No comments:
Post a Comment