Web开发
火柴头9527
这个作者很懒,什么都没留下…
展开
-
前端传递多组HTML控件到SpringMVC
1、需求描述在Web开发中,有这样一种场景,需要在页面上动态生成多组输入组件,如“亲属信息”、“教育信息”等。2、界面原型3、前端伪代码为HTML组件,如学历,命名时,每个组件的name属性使用相同的名称,如education,id属性可使用id_education_1、id_education_2,依此类推,方便后续使用JQuery选择器遍历、取值和格式校验。如果使用JavaScript模板引擎...原创 2018-02-13 13:05:01 · 255 阅读 · 0 评论 -
target VS currentTarget
target、currentTarget都是2级DOM事件标准定义的属性,在Vue、微信小程序开发中经常使用,它们有什么区别呢?先看一段转载的代码: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>target VS current转载 2018-09-19 20:58:38 · 176 阅读 · 0 评论 -
续《GitHub OAuth 第三方登录示例教程(阮一峰)》
阮老师的这篇博客通俗易懂,我按照博客内容,仅仅调整了一项就把整个demo顺利跑完了。 将index.js里的 const name = result.data.name; 改为: const name = result.data.login; 最后可以看到地址内容为: http://localhost:8080/welcome.html?name=xxxx 网页内容为,其中xxxx为“用户”...原创 2019-07-24 14:04:29 · 748 阅读 · 0 评论