getValue로 찍어보면 [Object Object]만 나온다.
노파심에...
Exr4.getCmp('라디오그룹아이디').getValue().radiofield의 name명
라디오그룹아이디가 radiog 이고 라디오버튼의 name이 bt면
Exr4.getCmp('radiog').getValue().bt
getValue로 찍어보면 [Object Object]만 나온다.
노파심에...
Exr4.getCmp('라디오그룹아이디').getValue().radiofield의 name명
라디오그룹아이디가 radiog 이고 라디오버튼의 name이 bt면
Exr4.getCmp('radiog').getValue().bt


<?
$trans_mode="&To=%27ko%27&From=%27ja%27";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.datamarket.azure.com/Data.ashx/Bing/MicrosoftTranslator/v1/Translate?Text=%27'.urlencode($msg).'%27'.$trans_mode.'&$top=100&$format=Raw');
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization: Basic API코드'));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$msg_trans=strip_tags(curl_exec($ch));
?>
PHP 소스를 압축한다? ㅋㅋㅋㅋ
PHP소스의 주석과 공백을 제거해주는 펑션도 있다.
역시 PHP는 내장 펑션만으로도 너무 훌륭해.
http://www.php.net/manual/en/function.php-strip-whitespace.php
<?php // PHP comment here /* * Another PHP comment */ echo php_strip_whitespace(__FILE__); // Newlines are considered whitespace, and are removed too: do_nothing(); ?>
<?php echo php_strip_whitespace(__FILE__); do_nothing(); ?>
function __construct(){
생성자
}
function __destruct(){
소멸자
}
class명과 같은 function은 __construct 다음에 실행
<?
class BaseClass { //부모클래스[BaseClass]
function __construct()
{
print "BaseClass 클래스의 constructor(생성자)\n";
}
function __destruct()
{
print "BaseClass 클래스의 destructor(소멸자)\n";
}
}
class SubClass extends BaseClass { //상속받은 클래스[SubClass]
function __construct()
{
parent::__construct();
print "SubClass 클래스의 constructor(생성자)\n";
}
function __destruct()
{
parent::__destruct();
print "Subclass 클래스의 destructor(소멸자)\n";
}
}
$obj=new SubClass; //상속받은 클래스 호출
?>
jsonp를 사용하면 된다.
console 메세지는 크롬 디버그 화면 console에서 확인할수 있다.
var addrStore1 = new Ext.data.JsonStore(
{
fields: ["sido","code"],
proxy: {
type: 'jsonp',
url: 'http://x.x.x.x/list',
reader: {
type: 'json',
}
},
autoLoad: true,
listeners: {
load: function() {
console.log(this.first().data.code);
}
}
});
.x4-field-li-focusClass {
background: #CFF0F5 !important;
border: 1px solid #6AB2BB;
}