2 Star 1 Fork 0

shenchuang1997 / Todo-jQuery

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Todo总结

一、技术选型

  1. jQuery:选择器和事件处理
  2. Bootstrap:响应式的样式
  3. Hogan:Html模版渲染
  4. webpack:模块化开发和实时刷新网页

二、学到的东西

  1. node环境的配置,如何初始化项目。

  2. webpack的安装,webpack如何处理js、css、图片以及html模版。

  3. jQuery的基本用法。

  4. Bootstrap的基本用法。

  5. Hogan的基本用法。

  6. H5的缓存机制,localStorage的基本用法:

    • 保存/修改:localStorage.saveItem(key, value);
    • 删除:localStorage.removeItem(key, value);
    • 清理缓存:localStorage.clear();
  7. localStorage存储JSON时会把JSON保存为字符串,所以需要对字符串进行转换,下面是一些常用方法:

    • 使用jQuery:$.parseJSON(jsonstr);
    • 使用浏览器自带的转换方式(Firefox,chrome,opera,safari,ie):JSON.parse(jsonstr);
    • JSON.stringify(json);
    • Javascript支持的转换方式:eval('(' + jsonstr + ')');
    • JSON官方的转换方式:json.js,stringify()和parse()
  8. 在文字中划线的css样式:text-decoration: line-through;

三、项目演示

输入图片说明

演示地址https://codepen.io/deep-moon/full/LMzmXG

The MIT License (MIT) Copyright (c) 2018 shenchuang1997 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

Todo的jQuerys实现 展开 收起
JavaScript
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/shenchuang1997/Todo-jQuery.git
git@gitee.com:shenchuang1997/Todo-jQuery.git
shenchuang1997
Todo-jQuery
Todo-jQuery
master

搜索帮助