When searching for jquery examples, I see that authors typically have an “or” to enclose, for example, a selector.
How in:
$ ('# tags'). Click ...
or
$ ("# tags"). Click
Is it a personal style, or is there a reason why one is better than the other?
In my brief experience, I found that “typing is faster. Also, creating json parameters is easier with“ because you can easily escape ”in strings.
Javascript . , HTML/XML " ". Javascript, , onclick. javascript . , "." Javascript ", ".
Python ( ), , , - " " ( ) - , ;-). , ( , "O'Brian" , , SQL-, "SELECT foo FROM bar WHERE baz='zapzap'").
"O'Brian"
"SELECT foo FROM bar WHERE baz='zapzap'"
Javascript - -, , PHP. , , .
JSON, , . , JSON 100% - Javascript - Javascript, .
, .
,
{ foo : 'bar' }
Javascript, JSON. JSON
{ "foo" : "bar" }
java-, " " ( 1).
PHP. , , . , "". JS, , .
"" - , " ", escape-. Vice Versa, , ".
, , . , VB6 Octave Agena ( ), , . ,
T "CACos", CACos(CReset(-P_I, 2)), CParse(script("octave", str.Subst("printf(""%s"",num2str(acos(complex([1],[2]))));", -P_I, 2)))
Javascript, .
Source: https://habr.com/ru/post/1709780/More articles:Create a SQL query using the SqlAlchemy select and join functions - pythonusing css drawing on jquery ui tab - jqueryTolerant Serialization Version - How to Find the AssemblyName of the Original - c #How to filter a strongly typed list using List variables - c #"Failed to load file or assembly or one of its dependencies. Access denied." - .netWhen checking ActiveRecord, do I get confirmation? => false, but there are no errors in error.count. How so? - ruby | fooobar.comException Handling / Resource Management in Jersey JAX-RS - jerseyWPF On Start определяет, запущен ли процесс и приносит приложение на передний план - c#Opening a ZIP file multipart / form-data with rubyzip - ruby | fooobar.comWhat is better CakePHP or pure PHP for a huge project? - frameworksAll Articles