按钮绑定获取当天时间Wix代码

// API Reference: https://www.wix.com/corvid/reference
// “Hello, World!” Example: https://www.wix.com/corvid/hello-world
$w.onReady(function () {
    // Write your JavaScript here
    // To select an element by ID use: $w(“#elementID”)
    // Click “Preview” to run your code
});
export function button1_click(event, $w) {
    // This function was added from the Properties & Events panel. To learn more, visit http://wix.to/UcBnC-4
    // Add your code for this event here:
    $w(‘#dynamicDataset’).setFieldValue(‘expiration’, new Date());
}

回答0

显示验证码
没有账号?注册  忘记密码?

社交账号快速登录