![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Js基础
文章平均质量分 74
iteye_8567
这个作者很懒,什么都没留下…
展开
-
Js base
Animal = function(age){this.age =age}var animal = new Animal(26);i = 1; 全局变量 //全局变量污染var i =1;局部变量== 值相等=== 严格相等true == 1;true !==1;false == 0;false !==0;null == undefinded...原创 2014-07-12 11:59:51 · 64 阅读 · 0 评论 -
手机验证
html<!DOCTYPE html><html xmlns:th="http://www.thymeleaf.org" xmlns:social="http://spring.io/springsocial" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorator="acc...原创 2014-08-29 17:25:07 · 163 阅读 · 0 评论 -
JS一些小应用
1.根据个人Eamil跳转到Email登录页面$(function(){ $("#goEmailBtn").click(function(){ var emailhost = gotoEmail($("#emailtext").text()); if (emailhost != "") { window.open("http://...2014-08-29 17:21:12 · 331 阅读 · 0 评论 -
bootstrap.js网站
bootstrap3.js网站: http://www.cnblogs.com/aehyok/p/3404867.html http://v3.bootcss.com/javascript/(官网) bootstrap2.js网站: http://www.w3cschool.cc/bootstrap/bootstrap-tutorial.ht...原创 2014-08-22 17:37:52 · 114 阅读 · 0 评论 -
bootstrap的一些基本应用
项目上要用这个东西,搞些来还真是有些麻烦,最主要对CSS不熟。1.bootstrap modal这个用起来还是比较方便的,比openWindow什么。。。<html lang="en"><head><meta charset="utf-8"><title>IN</title><link原创 2014-08-22 17:35:49 · 132 阅读 · 0 评论 -
parsley.js验证
parsley.js是一个表单验证的js,功能十分强大。官网:http://parsleyjs.org。应用实例:http://parsleyjs.org/doc/index.html#psly-frontend-form-validation也可以看下版本parsley-1.x.js,里面与后来的parsley-2.x.js还是有很多的不同。eg:引用parsley验证 1....2014-08-13 08:52:23 · 269 阅读 · 0 评论 -
Thymeleaf与js交互
项目上用到thymeleaf这个模版,发现参数前后传递是个麻烦,做了下总结: 1.js将data传递到java Controller 在http://dk05408.iteye.com/blog/2101469可以看到2.将数据从data从Java Controller传递到js 也有了 传递单个参数 java @RequestMappi...原创 2014-08-11 11:33:11 · 1247 阅读 · 0 评论 -
Thymeleaf 首发教程 与 spring 整合
Thymeleaf的jar自带了 与 Spring的整合的相关扩展包 ThymeleafViewResolver 视图首先添加依赖 ?12345<dependency> <groupId>org.thymeleaf</groupId> <artifactId&g...原创 2014-07-31 14:12:21 · 71 阅读 · 0 评论 -
Thymeleaf 首发教程
今天看到一个讨论群里说,每天套模板 改这些jstl 该标签 改起来麻烦死了,有没有不用改模板,直接套用模板 实现JSTL ognl表达式效果的技术呢? 肯定是有 那就是Thymeleafhttp://www.oschina.net/p/thymeleaf 介绍 Thymeleaf是一个XML/XHTML/HTML5模板引擎,可用于Web与非Web环境中的应用开发。它是一个开源的Ja...原创 2014-07-31 14:09:38 · 75 阅读 · 0 评论 -
Spring MVC and Thymeleaf: how to acess data from templates
In a typical Spring MVC application, @Controller classes are responsible for preparing a model map with data and selecting a view to be rendered. This model map allows for the complete abstraction of...原创 2014-07-31 13:36:56 · 75 阅读 · 0 评论 -
thymeleaf与spring整合
1、使用的是Spring EL而不是Ognl。2、访问上下文的Bean用${@myBean.doSomething()}3、th:field,th:errors,th:errorclass用于form processing。4、要采用SpringTemplateEngine。5、基本配置:<bean id="templateResolver" class="o...原创 2014-07-31 13:34:47 · 141 阅读 · 0 评论 -
thymeleaf 学习笔记
转自:http://www.blogjava.net/bjwulin/archive/2013/02/07/395234.html thymeleaf,我个人认为是个比较好的模板,性能也比一般的,比如freemaker的要高,而且把将美工和程序员能够结合起来,美工能够在浏览器中查看静态效果,程序员可以在应用服务器查看带数据的效果。thymeleaf是一个支持html原型的自然引擎,它在h...原创 2014-07-31 13:32:30 · 196 阅读 · 0 评论 -
JQUERY基础
基本选择器 $("#id') 匹配ID $(".class") 匹配class $("element")----$("div") 匹配元素 $("*") 匹配所有 $("span,#two" ) 匹配多个.原创 2014-07-28 15:13:54 · 71 阅读 · 0 评论 -
jQuery事件处理:return false与event.preventDefault();
可能在你刚开始学习关于jQuery事件处理时,看到的第一个例子就是关于如何阻止浏览器执行默认行为,比如下面这段演示click事件的代码:view plaincopy to clipboardprint?$("a.toggle").click(function () { $("#mydiv").toggle(); return false; // Pr...原创 2014-10-13 16:03:33 · 116 阅读 · 0 评论