jqlite

How to select an element by classname using jqLite?

若如初见. 提交于 2019-11-26 04:08:01
问题 I\'m trying to remove jquery from my Angular.js app in order to make it lighter, and put Angular\'s jqLite instead. But the app makes heavy use of find(\'#id\') and find (\'.classname\'), which are not supported by jqLite, only \'tag names\' (as per documentation) wondered what do u feel would be the best approach to change it. One approach I thought about is to create custom HTML tags. for example: change <span class=\"btn btn-large\" id=\"add-to-bag\">Add to bag</span> to <a2b style=\