execute
execute() メソッドは、指定されたバリエーション ID の JavaScript を実行し、CSS を適用します。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
バリエーションを実行する Kameleoon.API.Variations.execute メソッドのリファレンスです。
execute() メソッドは、指定されたバリエーション ID の JavaScript を実行し、CSS を適用します。
if (Kameleoon.API.Utils.querySelectorAll("#KameleoonPopin").length == 0) {
Kameleoon.API.Experiments.getById(123456).variations.forEach(function (variation) {
if (variation.name == "MyVariation") {
Kameleoon.API.Variations.execute(variation.id);
}
});
}
このページは役に立ちましたか?