PhpStorm
原JavaScript 語法
1 |
$("#FormAdd input").val(); |
警告訊息:
1 |
Checks that jQuery selectors are used in an efficient way. It suggests to split descendant selectors which are prefaced with ID selector and warns about duplicated selectors which could be cached. |
Inefficient jQuery usage warnings in PHPStorm IDE
修正後語法
1 |
$("#FormAdd").find("input").val(); |
--
1,897 total views, 1 views today