Jquery:单击按钮时打开一个新的HTML窗口

时间:2017-07-30 17:56:43

标签: javascript jquery html electron

1)我试图让这个只是为了测试目的,你能帮我解决吗?

$(document).ready(function (){ 
   var name = 'Juan';
   var pass = '123456';
   $('#boton').click( function () {
    if ($('#name') === name && $('#pass') === pass ) {
        windows.open('mainScreen.html'):
    } 
    else {
        alert("WRONG PASSWORD");
    }

    });
});

1 个答案:

答案 0 :(得分:2)

您可以使用此代码: -

以下是工作演示:https://output.jsbin.com/qitedoq

select date_report, entity,
       max(case when code_column = 1 then value end) as a,
       max(case when code_column = 2 then value end) as b,
       max(case when code_column = 3 then value end) as c
from t
group by date_report, entity
order by date_report, entity;