小编T_E*_*M_A的帖子

iCheck jQuery阻止自定义脚本

我使用"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)

jquery onclick icheck

9
推荐指数
1
解决办法
2万
查看次数

Cron syntax error near unexpected token

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)

php cron syntax-error

5
推荐指数
1
解决办法
3898
查看次数

如何在 Delphi 中声明数组对象字段?

我尝试这样做,但在构造函数中出错。

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 constructor properties object

3
推荐指数
1
解决办法
5237
查看次数

Delphi RAD 2010更新到最新的Indy版本

我使用Delphi RAD 2010和Indy 10.5.5.现在我正在使用IdSMTP和IdMessage.但发现其中的一些问题起作用.并查找在晚期版本中的信息,例如10.5.9中的问题已经消失.但在Indy官方网站上我找不到下载链接.

delphi indy updates delphi-2010 indy10

2
推荐指数
1
解决办法
2536
查看次数

Delphi发送TObjectList就像var参数一样

我有课

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 parameters compiler-errors tobjectlist

1
推荐指数
1
解决办法
329
查看次数