翻訳と辞書
Words near each other
・ CGD
・ CGE
・ CGEA
・ CGER
・ CgeTV
・ CGFC
・ CGG
・ CGG (company)
・ CGGBP1
・ CGGS
・ CGH
・ CGh physics
・ Cghene
・ CGHS
・ CGHS model
CFScript
・ CFSE
・ CFSF-FM
・ CFSG
・ CFSH-FM
・ CfSi
・ CFSI-FM
・ CFSK-DT
・ CFSL
・ CFSM-FM
・ CFSO-TV
・ CFSW-FM
・ CFSX
・ CFT
・ CFTA


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

CFScript : ウィキペディア英語版
CFScript

CFScript is an extension of CFML on the ColdFusion platform. CFScript resembles JavaScript. Some ColdFusion developers prefer it since it has less visual and typographical overhead than ordinary CFML.
== Usage ==
It is considered best practice to write ColdFusion Components and all business logic in CFScript and to use CFML only in .cfm files amongst HTML.
All CFScript code must be contained within a CFScript tag pair as follows, unless it's within a pure script-based ColdFusion Component.


xParam = 115;
yParam = 200;
color = 'FFCC99';


A simple example of a function:


function Sum(a, b)


A simple example of a component in CFScript, containing two functions:

component
}

ColdFusion 11, Railo 4.1+ and Lucee 4.5+ both do their best to fully support cf tags in CFScript.
While there may not be direct substitutions for all tags, it is often still possible to achieve the results of a tag in script, but via a different syntax. For example this is how to get a query into a variable in CFSCRIPT without writing a UDF:


qGetData = new Query();
qGetData .setDataSource('#APPLICATION.datasource#');
qGetData .setSQL('SELECT column1, column2 FROM table WHERE 1');
qDateResult = qGetData .Execute().getResult();



抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「CFScript」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.