2018-11-01から1ヶ月間の記事一覧

iterationのindexが使えるindexVar="i"

<aura:component implements="flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId" access="global" > </aura:component>

component.cmpでどう書けばその値表示されるの?(collection type調査)

controller.jsとcomponent.cmpで表現が違うときがあって調査して見た。 developer.salesforce.com <aura:component implements="flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId" access="global" > </aura:component>

コンポーネントを修正したがすぐに更新されない

設定から セッション設定>キャッシュ >チェック外す「パフォーマンスを向上させるためにブラウザの安全で永続的なキャッシュを有効にする」 >保存

コンポーネントが表示されない

値がnullではなかったらのif文は

値がnullではなかったらのif文は こんな書き方ができる! if (myRecord) { } const myRecord = response.getReturnValue(); if (myRecord) { //now process the record }下記の奴らはfalseになるから false (of course) 0 (the number zero) "" or '' (an em…

「===」、「 !==」 を使おう!

X false == ""; // true false == "0"; // true "" == "0"; // false [0] == 0; // true O false === ""; // false false === "0"; // false "" === "0"; // false [0] === 0; // falsetrailhead.salesforce.com