我可以使用不带参数的jQuery函数更改背景图像,但不能通过传递url的字符串参数。我做错了什么?
bloc id="one" {
"amountA" : 10.98,
"amountB" : 8.0,
"amountC" : 9.0,
"amountD" : 111.98
},
bloc id="two" {
"amountA" : 1.98,
"amountC" : 2.0,
"amountD" : 3.98
}
答案 0 :(得分:0)
你忘了设置http
int visited[M][N] ={0);
void printmatrix(int matrix[M][N] , int temp_M, int temp_N)
{
//Go Right
if(temp_M+1 < M && visited[temp_M + 1] !=1 )
{
visited[temp_M + 1] = 1; //Marking the cell as visited
cout<<matrix[temp_M+1][temp_N]<<" ";
printmatrix(matrix,temp_M+1, temp_N);
}
//gO Down ,i.e, temp_N+1
else if {..}
//gO LEFT ,i.e, temp_M-1
else if {..}
//gO UP ,i.e, temp_N-1
else if {..}
return;
}
int main()
{..
.
.
printmatrix(matrix,0,0);
return 1;
}
例如
$(this).myFunction2($('http://localhost/images/ship.JPG)'));
编辑:
var myurl = 'http://localhost/images/ship.JPG';
$('#shore-5').css("background-image", 'url(' + myurl+ ')');