摘要: 当网站无后台时,将数据暂存储为json文档,然后通过调用json文件获取数据填充前端页面 存储json格式的文件 [ { "id": 1, "cat": "新闻", "title": "这是第1个新闻" }, { "id": 2, "cat": "活动", "title": "这是第2个新闻" }, 阅读全文
posted @ 2016-11-30 15:56 lynnekanuo 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 1 $(document).ready(function () { 2 $("#search").click(function () { 3 $.ajax({ 4 type:"GET", 5 url:"http://127.0.0.1:8080/ajaxdemo/serverjson2.php?number=" +... 阅读全文
posted @ 2016-08-18 16:17 lynnekanuo 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 字符串--双引号逻辑值--true/false数组--[]对象--{} 阅读全文
posted @ 2016-08-18 16:16 lynnekanuo 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 10 namespace ~.sverIterface 11 { 12 13 public class EventPlayerInfo 14 { 15 public string name { get; set; } 16 public string grade { get; set; } 17 } 18 /// 19 ... 阅读全文
posted @ 2016-08-18 16:09 lynnekanuo 阅读(448) 评论(0) 推荐(0) 编辑
摘要: var LILL ={};//创建全局(function (wd) { function $(id) { return document.getElementById(id); } function alertNodeName(id) { alert($(id).nodeName); } var n 阅读全文
posted @ 2016-08-03 17:07 lynnekanuo 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 代码可以运行,但没有加载上样式,后来在IIS点击MIME类型时报错了 查看web.config中 <staticContent> <mimeMap fileExtension=".url" mimeType="application/octet-stream"/> </staticContent> 阅读全文
posted @ 2016-05-13 15:54 lynnekanuo 阅读(649) 评论(0) 推荐(0) 编辑