摘要:
a.html有个iframe载入b.com/login.html,当login完成时通知a.html页面登录完成并传递UserName 1.a.html 监听消息 2.iframe内嵌页login.html postMessage var ifr = window.parent; //获取父窗体 v 阅读全文
摘要:
1.ios h5 app avalon tap事件失效 使用MUI制作app界面,使用avalon.js渲染数据,发现在(Android上正常)ios上运行时容器div的avalon的ms-on-tap被内容遮住不执行.用MUI的on tap事件可以执行但改动较大,于是改为ms-on-click.( 阅读全文
摘要:
1.StreamToMemoryStream 2.Stream.Length报错:此流不支持查找 From:http://www.cnblogs.com/xuejianxiyang/p/5816684.html 阅读全文
摘要:
1.列表数据绑定 doClick:function(data) { alert(data.name); console.log(data); } From:http://www.cnblogs.com/xuejianxiyang/p/5554146.html 阅读全文
摘要:
1.动态生成button控件及响应服务端和客户端事件 2.调用: From:http://www.cnblogs.com/xuejianxiyang/p/5549697.html 阅读全文
摘要:
1.页面淡入淡出 <html style="background:#0086b5"> <!--简易loading--> <div id="loading" style="z-index:-999;font-size:24px;width:100%;height:24px;text-align:cen 阅读全文
摘要:
压缩js文件 打开IIS 7的配置文件:c:\windows\system32\inetsrv\config\applicationhost.config 在<staticContent lockAttributes="isDocFooterFileName">中添加: 相关文章:Getting I 阅读全文
摘要:
1.扩展方法 2.调用 Using Utils; void Test() { var ids=new int[] { 1,2,3 ... 9999 }; var list=datacontext.TestTable.InRange(ee => ee.Id, 2000, ids).ToList(); 阅读全文
摘要:
1.贪婪模式:(.*) (匹配尽可能多的字符) 2.非贪婪模式:(.*?) 3.非贪婪模式补充问题: 正则 \d*? 字符串abc123def 匹配无结果为什么?大概是因为*表示可以0次,所以非贪婪模式就匹配了0次?把*换成+号就好了 那为什么标题2处的没有匹配失败?因为.*?外面有引号,所以至少要 阅读全文