js
lonely_sdk
请多多指教
展开
-
js去String空格
function trimStr(str) { var result; result = str.replace(/(^\s+)|(\s+$)/g,"");//去除前后的空格 //if(is_global.toLowerCase()=="g") result = result.replace(/\s/g,"");//去除中间的空格 return result; }...原创 2013-06-20 10:25:43 · 80 阅读 · 0 评论 -
js---eavl获取{object ,object}值
//保存操作 text : lang('l_save'), /*id: 'btnsave',*/ handler : function() { ucstarCustomerInfoMainForm.form.doAction('submit',{ //将表单数据提交到服务器 url : ucstarCustom...原创 2013-06-21 15:33:18 · 170 阅读 · 0 评论 -
有关js爆ReferenceError: xxx is not defined
在某些连接的字符组成的页面显示,可能会报ReferenceError: xxx is not defined。在我这个问题上是由与引号的问题引起的。以下作为记录: theBody += "<td style='padding:1px;' nowrap><input type='radio' name='controluser' onclick=\"getControlO...原创 2013-08-28 09:36:11 · 717 阅读 · 0 评论 -
Extjs tabPanel iframe刷新
----------------extjs刷新tabpanel单独刷新--------------------unction showInTab(module,id,caption,url){var tabs = Ext.getCmp('tabs');var tabId = id;var tab = Ext.getCmp(module);if (tab){tab.show();window....原创 2013-10-28 14:44:31 · 282 阅读 · 0 评论