函数:function 函数名(参数列表) 事件 单击:onclick()表单提交:onsubmit()鼠标经过:onmouseover()值改表时:onchange() window窗体对象转跳:window.location = url 警告框:alert() 确认框:confirm("mess ...
"no-alert": 0,//禁止使用alert confirm prompt "no-array-constructor": 2,//禁止使用数组构造器 "no-bitwise": 0,//禁止使用按位运算符 "no-caller": 1,//禁止使用arguments.caller或argum... ...
分类:
其他好文 时间:
2019-08-26 15:28:05
阅读次数:
75
公众号授权操作 开发微信公众号时,需要获取到用户的信息,因而不得不设计到微信公众号授权问题(本质是利用OAuth登陆) 开发模式如何进行授权操作 + 微信公众号提供了两种环境的授权模式, 生产环境 开发环境 生产环境也就是正式上线环境,具体不做讨论 重点谈论开发环境(因为道理一样,主要是在开发时,如 ...
分类:
微信 时间:
2019-08-25 18:03:26
阅读次数:
133
1、先创建activity_alert_dialog.xml 2、AlertDialogActivity.java 3、效果: ...
分类:
移动开发 时间:
2019-08-25 16:29:18
阅读次数:
181
Vue进阶学组件 1.组件的学习: 首先想要使用vue的组件 那么需要引入一个支持vue的jsp文件 1.model指令的学习 model指令的意思:用于双向绑定且只能用到表单元素当中 试列代码: 2.show指令 show指令的意思:改变一个元素是否显示隐藏 试列代码: 3.if指令 if指令的含 ...
分类:
其他好文 时间:
2019-08-24 22:52:07
阅读次数:
76
https://www.cnblogs.com/wupeiqi/articles/5602773.html JavaScript 独立的语言,浏览器具有js解释器 JavaScript代码存在形式: - Head中 <script> //javascript代码 alert(123); </scri ...
分类:
编程语言 时间:
2019-08-23 00:01:33
阅读次数:
99
一、jquery方法(页面中必须加载过jquery库) 推荐使用 1:var options=$("#test option:selected"); //获取选中的项2:alert(options.val()); //拿到选中项的值3:alert(options.text()); //拿到选中项的文 ...
分类:
其他好文 时间:
2019-08-22 11:00:18
阅读次数:
112
dir_alert .set({ theme: { width: '70%', }, title: '脚本编辑器', tpl: '<div ng-init="init()">' + '<div id="editormd">' + '<textarea style="display:none;"></... ...
分类:
其他好文 时间:
2019-08-21 13:35:07
阅读次数:
91
<script> //动态函数调用,调用者使用"targetFunction" function targetFunction() { alert(11111); return 9; } test("myFunc"); function test(funcName) { if(typeof(eval ...
分类:
Web程序 时间:
2019-08-21 11:50:00
阅读次数:
85
封闭函数 封闭函数是javascript中匿名函数的另外一种写法,创建一个一开始就执行而不用命名的函数。 一般定义的函数和执行函数: function myalert(){ alert('hello!'); }; myalert(); 封闭函数: (function(){ alert('hello! ...
分类:
Web程序 时间:
2019-08-21 11:33:21
阅读次数:
93