我正在使用带有jquery mobile,版本1.3.0的phonegap,最近推出了jquery验证(尝试了两个版本,1.11和1.9),我遇到了文本框验证的问题.问题是错误消息放在文本框中,看起来很难看.使用jquery mobile 1.2.0一切正常.我发现了问题,不知道如何优雅地修复它.
使用jquery mobile 1.2.0的代码:
<label for="phone">Telefon nummer:</label>
<input type="text" name="phone" class="phone ui-input-text ui-body-c ui-corner-all ui-shadow-inset error" value=""><label for="phone" class="error" style="">Telefonnummer skal oplyses</label>
Run Code Online (Sandbox Code Playgroud)
使用jquery mobile 1.3.0的代码:
<div class="ui-input-text ui-shadow-inset ui-corner-all ui-btn-shadow ui-body-c"><input type="text" name="phone" class="phone ui-input-text ui-body-c error" value=""><label for="phone" class="error" style="">Telefonnummer skal oplyses</label></div>
Run Code Online (Sandbox Code Playgroud)
正如你在jquery mobile 1.3.0中看到的,他们放了一个div包装器.我怎样才能解决这个问题?
谢谢.
尝试使用Netbeans上的Xdebug(在Windows 8上)调试卷曲请求时,我遇到了一个奇怪的问题.这是我的代码:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://localhost");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
$response = curl_exec($ch);
if ( curl_errno($ch) ) {
$result = 'ERROR -> ' . curl_errno($ch) . ': ' . curl_error($ch);
echo $result;
}
print "\n response = \n";
var_dump($response);
// close cURL resource, and free up system resources
curl_close($ch);
die;
Run Code Online (Sandbox Code Playgroud)
当我使用Netbeans进行调试时,我得到:
ERROR -> 28: Operation timed out after 10015 milliseconds with 0 out of -1 bytes receivedresponse = bool(false)
Run Code Online (Sandbox Code Playgroud)
当我在没有调试的情况下运行时,我没有得到错误和xampp页面的响应.
在php.ini我有:
[XDebug]
zend_extension …Run Code Online (Sandbox Code Playgroud)