php textarea newLine (?) textarea에서 줄바꿈처리.
분류없음 / 2012/03/30 15:51
nl2br이라는 함수를 사용하면된다.
입력은 그냥 value값을 post로 넘겨서 처리했으며.. 받아서 뿌려주는부분에서
<td class="commentv" ><?=nl2br($comment->comment)?></td>
nl2br이라는 함수를 사용하면된다.
입력은 그냥 value값을 post로 넘겨서 처리했으며.. 받아서 뿌려주는부분에서
<td class="commentv" ><?=nl2br($comment->comment)?></td>
var div = 11.234323;
(parseInt(div*100)/100).toFixed(2);
$number1 = 1350.156265;
$number 2 = floor(($number1*100))/100;
매번 만들지만 매번 햇갈려-_-;
new Ext.data.AjaxProxy({
type : 'ajax',
url : '/fileList.json',
contentType : 'application/json; charset=utf-8',
reader : {
type : 'json',
totalProperty : 'totalCount',
successProperty : 'success',
root : 'fileList',
extractData : function(root, returnRecords) {
var values = [],
records = [],
Model = this.model,
length = root.length,
idProp = this.idProperty,
node, id, record, i;
for (i = 0; i < length; i++) {
node = root[i];
values = this.extractValues(node);
id = this.getId(node);
if (returnRecords === true) {
record = new Model(values, id);
record.data.path = node;
record.raw = node;
records.push(record);
if (this.implicitIncludes) {
this.readAssociated(record, node);
}
} else {
values[idProp] = id;
records.push(values);
}
}
return records;
}
}
})