
js
帅过头
用最少的内容解决所需的问题
展开
-
微信小程序中引入js
1,创建后缀为wxs的文件:stringUtils.wxs2,在文件中定义函数:var substrDate = function (date,type) { var dt = ""; if(type == 1){ dt = date.substring(0,10); }else{ dt = date.substring(11, 16); } retu...原创 2019-11-20 10:55:42 · 646 阅读 · 0 评论 -
js加载后自动执行
<html><head><script type="text/javascript"> (function(){ alert(123); })(); </script></head><body></body></html>语法(函数)();原创 2019-11-04 17:59:45 · 574 阅读 · 0 评论