在Sass中,是否有可能操纵给定元素已经继承的值?
我的目标是这样的:
body
color: blue
.warning
color: red
strong
color: darken(inherit,20)
Run Code Online (Sandbox Code Playgroud) 我想要一个指令在三个范围变量发生变化时重新呈现HTML.前两个只是整数,第三个是数组.
我们$watchGroup看几个变量,我们$watch用objectEquality作为第三个参数,我们$watchCollection这就好比$watch,但objectEquality暗示.
有没有办法写一个类似这个的$ watch?
$scope.$watchGroup(['number1', 'number2', 'myArray'], callback, true); // true for objectEquality
Run Code Online (Sandbox Code Playgroud) 我使用Plugman来安装这样的插件:
plugman install --platform iOS --project/Users/User/Documents/Projects/MyProject --plugin https://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen.git
和Plugman说安装成功了.
然而,在构建项目时,xCode输出说:
CDVPlugin类CDVSplashScreen(pluginName:splash screen)不存在.
[CDVTimer] [splashscreen] 1.785994ms
CDVPlugin类CDVSplashScreen(pluginName:SplashScreen)不存在.
错误:找不到插件'SplashScreen',或者不是CDVPlugin.检查config.xml中的插件映射.
第二个错误可能是因为我试图用javascript调用Splashscreen插件但我在我的项目中的两个位置都有SplashScreen文件:
MyProject的/科尔多瓦/插件/ org.apache.cordova.core.splashscreen /
和
MyProject/MyProject.xcode/plugins/org.apache.cordova.core.splashscreen/CDVSplashScreen.h MyProject/MyProject.xcode/plugins/org.apache.cordova.core.splashscreen/CDVSplashScreen.m
因此,MyProject看起来像这样:
没有相同的问题我无法安装任何其他插件.有没有人有任何想法?
我正在使用没有CLI的Phonegap 3.0(从Phonegap 2.4升级)