Select the unchecked check box to match the two methods that contain a string's regular, JSON value, and define the variable outside and inside the difference

Source: Internet
Author: User

One, filter unchecked check box: Not ("input:checked")

Second, match the string with VARCHAR: ". *varchar.*?"

Three, two methods of JSON value

 varData={                            "show_in_list":1,                            "enums": [                                {                                    "value":" Business",                                    "Key":"1"                                },                                {                                    "value":" Business",                                    "Key":"1"                                },                                {                                    "value":" the",                                    "Key":"1"                                }                            ],                            "Key":"PK",                            "Field_name":"primary Key ID",                            "desc":"",                            "column":"ID",                            "type":"INT (Ten)"                        },

An object, there are two ways to take the value inside, take the key inside to do an example

The first type: data. KEY

Second type: data[' KEY ']

Believe me, knowing these two methods is definitely a lot better than just knowing one way,

I've come across a hole like this, because I only know the first method, so when the key inside becomes a string, I'm at a loss, so knowledge seems so important.

There's a hole I'm touching.

Just like

Four, put Var in the loop inside or outside is two different things, I stepped on this pit, after all, or because of insufficient knowledge, so continue to refuel it

Put Var outside the loop

  var data=0;  for (var i=0;i<4; i++) {data+ +;    Console.log (data);} VM576:51VM576:52VM576:5  3VM576:54

and put Var in the loop.

 for (var i=0;i<4; i++) {  var data=0;d ata+ +;    Console.log (data);} 4vm573:41

Haha, four times, all 1.

This is because you put var inside, and each time the loop var data is initialized

Select the unchecked check box to match the two methods that contain a string's regular, JSON value, and define the variable outside and inside the difference

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.