我已升级到API 27并构建工具.以前我使用的是API 22.
升级到SDK 27后,我得到错误,我必须使用类似于27级的支持库.我已经通过SDK管理器下载了支持存储库版本47.0.0,最后这是我的gradle设置.我该怎么做才能解决以下错误:
apply plugin: 'com.android.application'
android {
compileSdkVersion 27
buildToolsVersion "27.0.3"
defaultConfig {
applicationId "com.sample.app"
minSdkVersion 14
targetSdkVersion 19
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
implementation 'com.google.firebase:firebase-messaging:11.0.4'
compile 'com.google.android.gms:play-services:11.0.4'
compile 'com.android.support:support-v4:27.1.1'
}
apply plugin: 'com.google.gms.google-services'
Run Code Online (Sandbox Code Playgroud)
错误:(23,13)无法解决:com.android.support:support-v4:27.1.1
如何在VBscript中将字符串转换为变量名?我发现JavaScript,C#,Pyton,Perl,Ruby,Java的类似Q/A ,但不适用于VBscript.
这就是为什么我不能直接使用变量而不是字符串:
我从Web服务获得了一个逗号分隔的权限名称列表.项目经理可以随时更新此列表,并期望我检查软件用户是否被授予这些权限.用户的权限在运行时通过复杂的方法以及配置文件数据,软件中的活动历史等设置.例如,如果用户购买了1000个产品,变量SuperCustomerPermission将在页面标题中为他设置SuperCustomerPermission="yes"(不作为cookie或会话也不存储在数据库中).
要检查权限列表,我想将权限名称列表传递给函数并循环显示名称:
我从Web服务获得的权限名称:
permissionNames = "adminPermission,deletePermission,configPermission,SuperCustomerPermission"
Run Code Online (Sandbox Code Playgroud)
我尝试将这些字符串作为变量传递给子例程:
Sub checkPermission(PermissionNames)
permissionNamesArray = split(permissionNames,",",-1,1)
For Each x In permissionNamesArray
'How to convert x to its variable equivalent and check if it equals "yes"
Next
End Sub
Call checkPermission(permissionNames)
Run Code Online (Sandbox Code Playgroud) 我不确定堆栈是否溢出,但我在 Google Chrome 中设计的网站主页中鼠标滚轮滚动缓慢。是否有一些 html 或 css 属性控制滚动速度或者这是一个性能问题?
站点地址是ragaimen.com,问题出现在首页(其他页面工作正常)。
我正在寻找教程或快速示例,我如何发送POST数据抛出openStream.
我的代码是:
URL url = new URL("http://localhost:8080/test");
InputStream response = url.openStream();
BufferedReader reader = new BufferedReader(new InputStreamReader(response, "UTF-8"));
Run Code Online (Sandbox Code Playgroud)
你可以帮帮我吗 ?
我有一个简单的 div ,内联样式有max-width:100%;. doctype 是,<!DOCTYPE HTML>但 Chrome 控制台将其标记为无效属性值(Chrome 版本:67.0.3396.99)。您可以检查以下代码片段输出:
<div id="signupDiv" style="width:300px;max-width:l00%;margin:auto">
Inspect the problem here
</div>Run Code Online (Sandbox Code Playgroud)
我的“经典 ASP”应用程序在 Windows Server 2003 上,使用 ADO 连接到 SQL Server 2008 数据库。
数据库服务器正在从变更升级,并将运行 SQL Server 2017。
我试图证明旧应用程序仍然可以工作,连接到这个较新版本的 SQL Server。
到目前为止,我还没有成功地从旧的 WS2003 机器连接到 SQL Server 2017 安装。
我不确定需要安装哪些 OLEDB 或 ODBC 提供程序或驱动程序才能使其正常工作,以及最终需要什么连接字符串。
我创建了一个小型演示程序,使用与实际应用程序相同的代码来建立连接。本质上,我在这里所做的只是提供一个连接字符串并尝试连接。这是使用 ADO 的 VB6:
Private Sub btnConnect_Click()
Dim theConnection As New ADODB.Connection
theConnection.ConnectionString = Text1.Text
theConnection.Open ConnectString
If theConnection.State = 1 Then
MsgBox ("connected ")
Else
MsgBox ("failed to connect ")
End If
End Sub
Run Code Online (Sandbox Code Playgroud)
我可以让这个程序在新服务器上运行 - 带有 SQL Server 2017 的服务器,并且它成功连接。
此连接字符串有效:
Driver={SQL Server Native Client 11.0};Server=192.168.0.23;Database=TestDB;Uid=user1;Pwd=xxx;
Run Code Online (Sandbox Code Playgroud)
这也有效: …
我正在尝试分析格式为 XML 的 httprequest 的输出。我使用 MSXML2.DOMDocument 将响应加载为 XML,但收到此错误:
该系统找不到指定的路径。
这是当我将 httprequest 作为ResponseText接收时的输出:
<?xml version="1.0" encoding="utf-8"?>
<resultObj>
<result>False</result>
<invoiceNumber>1</invoiceNumber>
<referenceNumber>21669145</referenceNumber>
<transactionDate>2016/05/18 20:10:07</transactionDate>
</resultObj>
Run Code Online (Sandbox Code Playgroud)
这是我将结果加载为 XML 文件的 Vbscript 代码:
data= "invoiceUID=1"
Set httpRequest = Server.CreateObject("MSXML2.XMLHTTP.6.0")
httpRequest.Open "POST", "https://some url", False
httpRequest.SetRequestHeader "Content-Type", "application/x-www-form-urlencoded"
httpRequest.Send data
postResponse = httpRequest.ResponseXML.xml
Set xmlDOM = Server.CreateObject("MSXML2.DOMDocument")
xmlDOM.async = False
xmlDOM.setProperty "ServerHTTPRequest", True
xmlDOM.Load(postResponse) ///// I think this line fails
If xmlDOM.ParseError <> 0 Then
response.write xmlDOM.ParseError.Reason
Else
response.write "file loaded"
End If
Run Code Online (Sandbox Code Playgroud) 我多次遇到这个问题而且我正在寻找原因.
sql="update setting set hashcode='"&hashcode&"'"
Run Code Online (Sandbox Code Playgroud)
错误:
sql ="update setting set hashcode ='"&hashcode&"'"
---------------------------------------------- ^
Microsoft VBScript编译错误'800a0401'
预期结束声明
请注意,更改哈希码的初始值无效.
但这很好用
sql="update setting set anotherword='"&anotherword&"'"
Run Code Online (Sandbox Code Playgroud)
您是否知道为什么重命名参数可以解决问题?
我正在尝试制作一个账单表格,我需要在输入价格和数量列的值后自动显示生成的金额。但是使用以下代码,我只能计算一行。我希望每次输入值时它都能为每一行工作,最后,它也应该显示金额列的总和。
function deleteRow(row)
{
var i=row.parentNode.parentNode.rowIndex;
document.getElementById('billingSheet').deleteRow(i);
}
function addRow(){
var x=document.getElementById('billingSheet');
// deep clone the targeted row
var new_row = x.rows[1].cloneNode(true);
// get the total number of rows
var len = x.rows.length;
// set the innerHTML of the first row
new_row.cells[0].innerHTML = len;
// grab the input from the first cell and update its ID and value
var inp1 = new_row.cells[1].getElementsByTagName('input')[0];
inp1.id += len;
inp1.value = '';
// grab the input from the second cell and update its …Run Code Online (Sandbox Code Playgroud)vbscript ×3
css ×2
html ×2
ado ×1
android ×1
asp-classic ×1
httprequest ×1
java ×1
javascript ×1
jquery ×1
msxml ×1
scroll ×1
sql-server ×1
xml ×1