我正在尝试最小化为Mac OS X和Windows开发程序所需的代码签名证书的成本.至于我可以告诉大家,我不能使用第三方证书来签名我的OS X程序,并把它拿过去的GateKeeper,指示在这里.
我可以采用其他方式并使用Apple Developer证书签署我的程序的Windows版本吗?
当我单击"检查"按钮时,以下代码抛出错误"TypeError:无法读取属性'$ pristine'的undefined".
app.controller('MainCtrl', function($scope) {
// other stuff
})
.controller('Ctrl2', function($scope) {
$scope.product = {description:'pump'};
$scope.output = 'unknown';
// uncomment to avoid undefined error, still can't see $pristine
// $scope.formHolder = {};
$scope.checkForm = function() {
$scope.descriptionTest = $scope.product.description;
if ($scope.formHolder.productForm.$pristine) {
$scope.output = 'yes';
}
if ($scope.formHolder.productForm.$dirty) {
$scope.output = 'no'
}
}
});
Run Code Online (Sandbox Code Playgroud)
HTML
<body ng-controller="MainCtrl">
<div >
<ng-include ng-controller="Ctrl2" src="'myForm.html'"></ng-include>
</div>
</body>
Run Code Online (Sandbox Code Playgroud)
myForm.html
<form name="productForm" novalidate>
<h2>myForm</h2>
description: <input type="text" name="description" ng-model="product.description"/>
<br>
<button ng-click="checkForm()">Check Form</button>
<br> …Run Code Online (Sandbox Code Playgroud) 当我制作一个具有全图像布局的静态卡时,看起来有一个阴影渐变从暗到淡从下到上逐渐消失.这对于有文字的卡很有用,但是如果我没有文字,我想看看图片而不做修改.
Card card = new Card(this);
card.setImageLayout(Card.ImageLayout.FULL);
card.addImage(R.drawable.full_wiring);
mViews.add(card.toView());
Run Code Online (Sandbox Code Playgroud)
我很感兴趣,如果有办法用卡片指定这个.我知道我可以将常规的android视图作为替代方案.
尽管安装了状态栏插件,我仍然无法将离子/ cordova iOS应用中状态栏上的字体颜色更改为白色:
cordova plugins
...
org.apache.cordova.statusbar 0.1.8 "StatusBar"
Run Code Online (Sandbox Code Playgroud)
并在app.js
.run(function($ionicPlatform) {
$ionicPlatform.ready(function() {
if(window.StatusBar) {
StatusBar.styleLightContent();
}
});
})
Run Code Online (Sandbox Code Playgroud)
在config.xml中
<preference name="StatusBarOverlaysWebView" value="true" />
<preference name="StatusBarStyle" value="lightcontent" />
Run Code Online (Sandbox Code Playgroud)
字体颜色没有从黑色改变,我在XCode控制台中收到错误消息:
CDVPlugin class CDVStatusBar (pluginName: statusbar) does not exist.
Run Code Online (Sandbox Code Playgroud)
作为参考,我的cordova版本是3.5.0-0.2.6和离子的1.0.0-beta.13