在"提交"之后我试图隐藏我的表单.我想用ng-if来做.单击"查看"按钮可以打开和关闭表单,但它不适用于"添加"按钮.这是什么原因?
我创建了一个JSFiddle.链接到JSFiddle.
我的表格:
<form name="userAddForm" ng-submit="something()" class="form-horizontal" role="form">
<div class="form-group">
<label class="col-md-2 control-label">Username</label>
<div class="col-md-3">
<input name="username" ng-model="user.username" class="form-control" ng-required="true" placeholder="Username" type="text" />
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">Password</label>
<div class="col-md-3">
<input name="password" ng-model="user.password" class="form-control" placeholder="Password" type="password" ng-required="true" />
</div>
</div>
<button ng-disabled="userAddForm.$invalid" type="submit" ng-click="add=!add" class="btn btn-success">
<span class="glyphicon glyphicon-ok"></span> Add
</button>
</form>
</div>
Run Code Online (Sandbox Code Playgroud) 我发现可以通过链接在 Google Authenticator 应用程序中创建新条目。
例子:otpauth://totp/Example:alice@google.com?secret=JBSWY3DPEHPK3PXP&issuer=Example
是否可以通过网站链接在 Android 和 iOS 上打开 Google Authenticator 应用程序?
如果您使用类似这样的链接打开应用程序otpauth://,则会收到错误消息。