1 Star 0 Fork 11

神者X奇迹 / SimJQ

forked from Leytton / SimJQ 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README
MIT

SimJQ

SimJQ全称Simple JQuery,支持类似JQuery语法的常用DOM操作和网络请求功能。它不到4K大小,适合应用于存储空间极其有限的场景。

开源中国 https://www.oschina.net/p/simjq

项目主页 https://gitee.com/Leytton/SimJQ/

项目演示 http://leytton.gitee.io/simjq

详细介绍 http://blog.csdn.net/leytton/article/details/78388553

使用时引入js文件即可

<script type="text/javascript" src="//leytton.gitee.io/simjq/simJQ-1.4.min.js"></script>

支持函数链式调用,如:

$().tag('p').text("hello").attr('id','test').outHtml();
$().dom('<p>11111<span><b>hello</b></span></p>').attr('id','test').outHtml();

注: $(),s(),$s()都行,与Jquery冲突时在Jquery之前引入js文件,采用s()或$s()

1、为什么是4K?

簇是文件系统分配存储空间的基本单位,无论文件大小,它占用的空间总是整数个文件簇。即便你的文件只有1个字节(Byte),它仍旧会占用一个文件簇的大小,也就是4KBytes。

2、用在哪里?

  • 2.1对文件大小有严格要求的应用场景
  • 2.2Android 打包本地HTML资源尽量减小包大小
  • 2.3嵌入式网络通信 STM32、NodeMCU、Arduino等HTTP请求返回Js文件
  • 2.4 等待你的发挥

升级日志

1.6版本

添加$(this)支持

2.1版本

改用H5写法,优化核心算法,并新增了一些常用函数,文件体积压缩后更小只有3.45KB

2.2版本

1、修复val、html、text等函数参数为''与null区别的问题 2、为simJQ完善click方法,click方法现能多次绑定不同的方法,并能通过“click()”触发所绑定的方法

The MIT License (MIT) Copyright (c) 2017 Leytton 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.

About

SimJQ全称Simple JQuery,支持类似JQuery语法的常用DOM操作和网络请求功能。它不到4K大小,适合应用于存储空间极其有限的场景。 expand collapse
JavaScript
MIT
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
JavaScript
1
https://gitee.com/ovsexia/SimJQ.git
git@gitee.com:ovsexia/SimJQ.git
ovsexia
SimJQ
SimJQ
master

Search