小编Fab*_*bio的帖子

jQuery验证器:使用addMethod添加的调用方法

我如何调用使用jQuery.validator创建的validate方法?

例:

jQuery.validator.addMethod("functionA", function(value, element) {
    if($.trim(value)==""){
        return false;
    }
    return true;
}, "MSG A");

jQuery.validator.addMethod("functionB", function(value, element) {
    return jQuery.functionA(); //<--- How do I do it?
}, "MSG B");
Run Code Online (Sandbox Code Playgroud)

jquery jquery-validate

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

程序mysql用光标太慢..为什么?

我使用游标创建了一个Mysql程序,但运行速度太慢......它的输出速度在40到60行之间..请参阅:

DELIMITER $$
CREATE PROCEDURE sp_create(IN v_idsorteio INT,OUT afetados INT)
  BEGIN
        DECLARE done INT default 0;
        DECLARE vc_idsocio INT;
        DECLARE z INT;
        DECLARE cur1 CURSOR FOR select IdSocio from socios where Sorteio=1  and Finalizado='S' and CodClientes IS NOT NULL;
        DECLARE CONTINUE HANDLER FOR SQLSTATE '02000' SET done=1;
        SET z=1;
        OPEN cur1;
        FETCH cur1 INTO vc_idsocio;
        WHILE done=0 DO
            -- SELECT register as t; 
            insert INTO socios_numeros_sorteio (IdSocio,IdSorteio,NumerodeSorteio) VALUES (vc_idsocio,v_idsorteio,z);
            FETCH cur1 INTO vc_idsocio;
            SET z = z+1;
        END WHILE;
        CLOSE …
Run Code Online (Sandbox Code Playgroud)

mysql performance procedure cursor

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

Facebook标题不起作用

为什么这个Facebook标题不起作用?

<meta property="fb:admins" content="100001241265117">
<meta property="fb:app_id" content="346433102099273">
<meta property="og:url" content="http://www.fontedelucro.com.br">
<meta property="og:title" content="Fonte de Lucro - Seu negócio na internet">
<meta property="og:site_name" content="Fonte de Lucro - Seu negócio na internet">
<meta property="og:description" content="Blog relacionado a negócios na internet em geral. E-commerce,Programa de afiliados,Novidades entre outros">
<meta property="og:type" content="website">
<meta property="og:image" content="http://www.fontedelucro.com.br/wp-content/uploads/2012/07/dolar50.gif">
<meta property="og:locale" content="pt_br">
Run Code Online (Sandbox Code Playgroud)

当我把网址放在帖子中时,标题图片不显示.

该页面是http://www.fontedelucro.com.br.

facebook image header

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