如何通过类或标记名使用Angularjs获得价值?

时间:2019-10-09 15:32:02

标签: javascript angularjs

我是Java语言和Java语言的新手,不熟悉琐碎的操作,如何通过class或tagname使用angularjs获得价值?另外请看下面两张图片-

enter image description here

一段时间后会有变化-

enter image description here

现在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来获取canFocustitle的值,我怎么能得到它?

Plz,请在评论中进行澄清,还可以编辑帖子以获取更精确的问题。谢谢。

0 个答案:

没有答案