我正在使用Cordova 3.3.0和我的Galaxy S3(运行最新的Cyanogenmod)来测试我正在使用的应用程序; 我需要应用程序屏幕保持"纵向"模式并即使用户旋转设备也会被锁定.无论我尝试过什么或我遵循的教程,应用程序都忽略了锁定屏幕的首选项.我究竟做错了什么?
这是我的config.xml:
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.numediaweb.test" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Test</name>
<description>
Test.</description>
<author href="http://test.com" email="abdel@test.com">
me
</author>
<content src="index.html" />
<access origin="*" />
<preference name="orientation" value="portrait" />
<preference name="fullscreen" value="true" />
<preference name="SplashScreen" value="splash" />
<preference name="SplashScreenDelay" value="3000" />
</widget>
Run Code Online (Sandbox Code Playgroud) 这是我试图使用的代码:
if (results.Contains<string>(split.Any<string>) {
}
Run Code Online (Sandbox Code Playgroud)
我真的需要这个我正在编写的程序
我目前的代码是
<form action="post.php" method="post">
<input type="text" name="post"> <br />
<input type="text" name="uname" value="<?php echo $uname?>">
Run Code Online (Sandbox Code Playgroud)
我需要$ uname变量成为隐藏输入字段中的文本,以便我可以将其发布到post.php,因为它是通过前一个发布到此页面,并且需要继续.有没有更好的方法可以做到这一点,比如直接发布变量,而不是通过输入字段?
如果我有像这样的数组
Dim list As String()
Run Code Online (Sandbox Code Playgroud)
和列表从文件中读取
list = Split("filehere.txt", ",")
Run Code Online (Sandbox Code Playgroud)
我使用类似的东西
If list.Contains("string") then
code here
End If
Run Code Online (Sandbox Code Playgroud)
我可以找出数组"string"来自哪个字符串,例如:string(0)或string(16)