小编sel*_*lva的帖子

如何将值传递给React-Native-Router-Flux中的其他组件?

我的代码是:

...
<Router>
 <Scene key="com1" component={Com1} initial/>
<Scene key="com2" component={Com2}/>
</Router>
...
com1.js
...
onPress={Actions.com2}
Run Code Online (Sandbox Code Playgroud)

我换com1com2.

但我需要传递值的输入框Com1Com2.

我怎样才能做到这一点?

react-native react-native-router-flux

29
推荐指数
2
解决办法
3万
查看次数

在Mac OS sierra更新后Apache发出404错误

我刚刚更新到Mac OS 10.11 Sierra并且经典的Web服务器工作不正常,或者我应该说我的主目录不工作Apache服务器正在localhost工作,因为我得到'It works'页面,但是localhost/~myuser给出了这个消息'The requested URL /~myuser was not found on this server' 我试图跟随这个tuto,但它仍然无法正常工作

有人能帮我吗?

php apache macos macos-sierra

19
推荐指数
2
解决办法
1万
查看次数

严格标准:不应静态调用非静态方法JSite :: getMenu()

我是joomla的新人.当我将模板更改为其他类似http://www.joomla24.com/Joomla_3x_Templates/Joomla_3x_Templates/Oliverio_Lite.html

我收到以下错误

Strict Standards: Non-static method JSite::getMenu() should not be called statically, assuming $this from incompatible context in ..\xampp\htdocs\joomla\templates\oliveriolite\index.php on line 91

Strict Standards: Non-static method JApplication::getMenu() should not be called statically, assuming $this from incompatible context in ..\xampp\htdocs\joomla\includes\application.php on line 569
Run Code Online (Sandbox Code Playgroud)

joomla3.0

9
推荐指数
1
解决办法
3万
查看次数

Selenium Grid显示WebDriverException错误

我的Selenium Grid显示错误:

org.openqa.selenium.WebDriverException: The path to the driver executable must be set by the webdriver.chrome.driver system property;

但我完全指定了它(根据我的知识)

System.out.println("googlechrome"); 
capability = DesiredCapabilities.chrome(); 
capability.setBrowserName("chrome"); 
capability.setPlatform(org.openqa.selenium.Platform.WINDOWS); 
System.setProperty("webdriver.chrome.driver", "D:\\testing\\zip file\\chromedriver_win_26.0.1383.0\\chromedriver.exe");
driver = new ChromeDriver();
Run Code Online (Sandbox Code Playgroud)

我不知道出了什么问题.这个相同的代码上周工作得很好,但现在却没有.

java selenium-grid

5
推荐指数
1
解决办法
4526
查看次数

将SPSS文件读入R,日期数据格式错误,并生成更多变量

我尝试过使用spss.getHmisc 的

\n\n
    install.packages("Hmisc")\n    library(Hmisc)\n    mydata <- spss.get("C:\\\\good good study\\\\comscore\\\\purchase.sav", use.value.labels = TRUE)\n
Run Code Online (Sandbox Code Playgroud)\n\n

输出显示警告消息,如下所示:

\n\n
> mydata <- spss.get("C:\\\\good good study\\\\comscore\\\\purchase.sav", use.value.labels = TRUE)\nWarning messages:\n1: In read.spss(file, use.value.labels = use.value.labels, to.data.frame = to.data.frame,  :\nC:\\good good study\\comscore\\purchase.sav: Unrecognized record type 7, subtype 14 encountered in system file\n2: In read.spss(file, use.value.labels = use.value.labels, to.data.frame = to.data.frame,  :\nC:\\good good study\\comscore\\purchase.sav: Unrecognized record type 7, subtype 18 encountered in system file\n
Run Code Online (Sandbox Code Playgroud)\n\n

我在 spss 中的初始日期如下\xef\xbc\x9a\n spss 中的日期是正确的

\n\n

然而\xef\xbc\x8c当我在R中使用spss.get时,日期的数据变得乱码:\n date在R中变得乱码

\n

r

0
推荐指数
1
解决办法
1853
查看次数