我使用"iCheck jQuery"来修改复选框的样式.但是当我添加一个iCheck脚本时 - 我的onlick metod停止工作.为什么会这样?
<input id="my_cb" type="checkbox" value="yes_n" onclick="hide_row_metod()"/>
<script>
$(document).ready(function(){
$('#my_cb').iCheck({
checkboxClass: 'icheckbox_square-blue',
radioClass: 'iradio_square-blue',
increaseArea: '20%' // optional
});
});
</script>
Run Code Online (Sandbox Code Playgroud)
我的剧本:
<script>
function hide_row_metod() {
if(document.getElementById('my_cb').checked){
document.getElementById('row1').style.display = "none";
}else{
document.getElementById('row1').style.display = "inline";
}
}
</script>
Run Code Online (Sandbox Code Playgroud) Moved the site to another server. Add file statistic.php to the ?ron to perform. Only this Cron that does not like something. Write errors:
/home/site/www/statistic.php: line 1: ?php: No such file or directory
/home/site/www/statistic.php: line 2: syntax error near unexpected token `"bd.php"'
/home/site/www/statistic.php: line 2: `include ("bd.php");
Run Code Online (Sandbox Code Playgroud)
There is my code
<?php
include ("bd.php");
$result = mysql_query("SELECT MAX(id) FROM statistic_dep",$db);
$myrow1 = mysql_fetch_array($result);
$last_id=$myrow1[0];
...
Run Code Online (Sandbox Code Playgroud) 我尝试这样做,但在构造函数中出错。
E2029 'OF' 预期但发现 '['
Dish = class
public
Dish_name: string;
Dish_id: integer;
Dish_number: integer;
Dish_units: string;
Dish_price: integer;
Dish_prime_cost: integer;
Dish_ingredients_id: array[1..100] of Ingredients;
constructor Create( NewDish_name: string;
NewDish_id: integer; NewDish_number: integer;
NewDish_units: string; NewDish_price: integer;
NewDish_prime_cost: integer;
NewDish_ingredients_id:array[1..100] of Ingredients);
destructor Destroy;
end;
Run Code Online (Sandbox Code Playgroud)
成分是一流的。
我使用Delphi RAD 2010和Indy 10.5.5.现在我正在使用IdSMTP和IdMessage.但发现其中的一些问题起作用.并查找在晚期版本中的信息,例如10.5.9中的问题已经消失.但在Indy官方网站上我找不到下载链接.
我有课
TFolder = class
NODE_INDEX: Integer;
FIRST_INDEX : Integer;
CODE_NAME: AnsiString;
NAME: AnsiString;
constructor Create(NewNODE_INDEX, NewFIRST_INDEX: Integer; NewCODE_NAME, NewNAME: AnsiString);
destructor Destroy; override;
end;
Run Code Online (Sandbox Code Playgroud)
我有类型
type
TFolderList = class (TObjectList<TFolder>)
end;
Run Code Online (Sandbox Code Playgroud)
然后我尝试使用这种类型
TAccount = class
...
FOLDERS: TFolderList;
public
constructor Create(...);
destructor Destroy; override;
procedure LoadFoldersFromDisk(var _objectList: TFolderList);
end;
Run Code Online (Sandbox Code Playgroud)
当我尝试发送我的TObject列表像参数
procedure TForm1.FormCreate(Sender: TObject);
begin
olLOCALFolders := TObjectList<TFolder>.Create();
Account.LoadFoldersFromDisk(olLOCALFolders);
end;
Run Code Online (Sandbox Code Playgroud)
我收到错误"实际和正式var参数的类型必须相同".我做错了什么?
delphi ×3
constructor ×1
cron ×1
delphi-2010 ×1
icheck ×1
indy ×1
indy10 ×1
jquery ×1
object ×1
onclick ×1
parameters ×1
php ×1
properties ×1
syntax-error ×1
tobjectlist ×1
updates ×1