摘要: art-template循环遍历无法显示数据原因 1.语法问题:循环语句导致的问题 2.插件问题: 用标准语法时循环数据如果引入第一个插件,会导致数据显示不出来只有引入第二个插件才可循环出数据 用原生语法时第一个插件可以显示数据,引入第二个插件也可显示出数据 3.当嵌有子循环时,父循环可显示数据而子 阅读全文
posted @ 2019-12-12 17:47 流浪者&乔木 阅读(524) 评论(0) 推荐(0) 编辑
摘要: 1、window.location.href=URL : 在本窗体打开一个新的页面,也是最常用的一种方法; 2、window.open(URL) : 在一个新的窗口打开一个新的页面; 3、location.replace(URL) :本窗口的页面被替换为一个新的页面URL,替换后不可以回退到上个页面 阅读全文
posted @ 2019-12-12 15:44 流浪者&乔木 阅读(920) 评论(0) 推荐(0) 编辑
摘要: 1.添加模板 <script id="userinfo" type="text/template"> {{ if id == null }} <li class="login" style="white-space:nowrap;height:32px;line-height:32px;"><a h 阅读全文
posted @ 2019-12-12 15:20 流浪者&乔木 阅读(1896) 评论(0) 推荐(0) 编辑
摘要: 页面跳转加密URL地址参数传递 window.location.href="foot.html?"+"good="+encodeURI(encodeURI(goodid)); 页面跳转解密 URL参数 阅读全文
posted @ 2019-12-12 09:54 流浪者&乔木 阅读(1030) 评论(0) 推荐(0) 编辑
摘要: 页面跳转加密参数 window.location.href="foot.html?"+btoa(encodeURIComponent("goodid="+goodid)); 页面跳转后解密参数 阅读全文
posted @ 2019-12-12 09:47 流浪者&乔木 阅读(3091) 评论(0) 推荐(0) 编辑