StringBuffer buffer = new StringBuffer();
/* 获得功能列表 */
PageFunction function = new PageFunction();
function.setFunctionPage(pageName);
SingleDataProxy sdp = SingleDataProxy.getInstance();
ArrayList functionList = (ArrayList) sdp.query(function);
buffer.append("<script language=\"javascript\">\n");
int size = functionList.size();
for (int i = 0; i < size; i++) {
function = (PageFunction) functionList.get(i);
if (!GenericValidator.isBlankOrNull(function.getFunctionContent())) {