我是Java语言和Java语言的新手,不熟悉琐碎的操作,如何通过class或tagname使用angularjs获得价值?另外请看下面两张图片-
一段时间后会有变化-
现在HTML
下面的代码中的某些属性具有相同的属性,-
<input type="text"
class="menuTitleField ng-pristine ng-untouched ng-valid ng-isolate-scope ng-valid-required"
ng-model="title" placeholder="Option Name" elastic-input=""
ng-required="isRequired" focus-on="newChild" focus-if="canFocus"
tabindex="0" required="required" style="min-width: 0px; width: 48px;">
我认为`canFocus and
title``的值来自服务器,如何获取这些属性的值?
现在我想通过类名或标签名或event.target.id来获取canFocus
和title
的值,我怎么能得到它?
Plz,请在评论中进行澄清,还可以编辑帖子以获取更精确的问题。谢谢。