[{"data":1,"prerenderedAt":233},["ShallowReactive",2],{"content-ja-\u002Fsyntax\u002Fmethods":3},{"id":4,"title":5,"body":6,"description":226,"extension":227,"meta":228,"navigation":124,"path":229,"seo":230,"stem":231,"__hash__":232},"content_ja\u002Fsyntax\u002Fmethods.md","許可メソッド",{"type":7,"value":8,"toc":219},"minimark",[9,12,28,44,50,54,61,70,73,91,132,135,142,173,180,183,197,200,215],[10,11,5],"h1",{"id":5},[13,14,15,19,20,27],"p",{},[16,17,18],"code",{},"&#123;&#123; &#125;&#125;"," 内および hyogen ブロック内の式で使えるメソッド呼び出しは、現時点では ",[21,22,23,26],"strong",{},[16,24,25],{},".toLocaleString(...)"," のみ","です。",[29,30,35],"pre",{"className":31,"code":32,"language":33,"meta":34,"style":34},"language-markdown shiki shiki-themes github-light github-dark","{{ population.toLocaleString('ja-JP') }}\n","markdown","",[16,36,37],{"__ignoreMap":34},[38,39,42],"span",{"class":40,"line":41},"line",1,[38,43,32],{},[13,45,46,47],{},"出力例: ",[16,48,49],{},"2,825,000",[51,52,53],"h2",{"id":53},"引数",[13,55,56,57,60],{},"引数は ",[21,58,59],{},"JavaScript に準拠","します。バリデーションは行いません。",[29,62,64],{"className":31,"code":63,"language":33,"meta":34,"style":34},"{{ price.toLocaleString('en-US', { style: 'currency', currency: 'USD' }) }}\n",[16,65,66],{"__ignoreMap":34},[38,67,68],{"class":40,"line":41},[38,69,63],{},[51,71,72],{"id":72},"テンプレートリテラル内",[13,74,75,76,79,80,83,84,87,88,27],{},"テンプレートリテラル ",[16,77,78],{},"`hello ${...}`"," の ",[16,81,82],{},"${}"," 内でも、許可された式が使えます。",[16,85,86],{},".toLocaleString"," は ",[21,89,90],{},"可",[29,92,94],{"className":31,"code":93,"language":33,"meta":34,"style":34},"\u003C!--@hg\nconst count = 1234567\nconst msg = `Total: ${count.toLocaleString('ja-JP')}`\n@endhg-->\n\n{{ msg }}\n",[16,95,96,101,107,113,119,126],{"__ignoreMap":34},[38,97,98],{"class":40,"line":41},[38,99,100],{},"\u003C!--@hg\n",[38,102,104],{"class":40,"line":103},2,[38,105,106],{},"const count = 1234567\n",[38,108,110],{"class":40,"line":109},3,[38,111,112],{},"const msg = `Total: ${count.toLocaleString('ja-JP')}`\n",[38,114,116],{"class":40,"line":115},4,[38,117,118],{},"@endhg-->\n",[38,120,122],{"class":40,"line":121},5,[38,123,125],{"emptyLinePlaceholder":124},true,"\n",[38,127,129],{"class":40,"line":128},6,[38,130,131],{},"{{ msg }}\n",[51,133,134],{"id":134},"使えないメソッド",[13,136,137,138,141],{},"次のような一般的なメソッドは ",[21,139,140],{},"使えません",":",[143,144,145,158,170],"ul",{},[146,147,148,151,152,151,155],"li",{},[16,149,150],{},".map()"," \u002F ",[16,153,154],{},".filter()",[16,156,157],{},".reduce()",[146,159,160,151,163,151,166,169],{},[16,161,162],{},".trim()",[16,164,165],{},".slice()",[16,167,168],{},".length","（プロパティとしてはアクセス可）",[146,171,172],{},"任意のユーザー定義メソッド",[13,174,175,176,179],{},"配列操作が必要な場合は、hyogen ブロック内で ",[16,177,178],{},"each"," ループを使うか、context に整形済みの値を渡してください。",[51,181,182],{"id":182},"関数呼び出し",[13,184,185,186,189,190,79,193,196],{},"メソッド以外の関数呼び出しは、",[21,187,188],{},"component で登録した関数","（",[16,191,192],{},"component ... as name",[16,194,195],{},"name(...)","）のみ許可されています。ビルトイン関数は当面ありません。",[51,198,199],{"id":199},"関連",[143,201,202,209],{},[146,203,204],{},[205,206,208],"a",{"href":207},"\u002Fja\u002Fsyntax\u002Fexpressions","式と変数展開",[146,210,211],{},[205,212,214],{"href":213},"\u002Fja\u002Fsyntax\u002Fincludes","include と component",[216,217,218],"style",{},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":34,"searchDepth":103,"depth":103,"links":220},[221,222,223,224,225],{"id":53,"depth":103,"text":53},{"id":72,"depth":103,"text":72},{"id":134,"depth":103,"text":134},{"id":182,"depth":103,"text":182},{"id":199,"depth":103,"text":199},"式で使えるメソッド呼び出し","md",{},"\u002Fsyntax\u002Fmethods",{"title":5,"description":226},"syntax\u002Fmethods","GDHPV9Lqt0OwVBXoyKvjXtdAZKsj3FkwYk5Md6y3XMg",1787223114859]