<script>
function change_status(money){
//$("#money").val(money); // val()这种写法有时会失效,特别是他的父元素是dosplay:none时
$("#money").attr("value",money); // 推荐这种写法,可正常赋值
//document.getElementById("money").value=money; //js原始写法
}
</script>
作者:AlbertWen
添加时间:2020-04-29 18:00:00
修改时间:2026-02-19 12:15:20
分类:02.前端/Vue/Node.js
编辑
作者:AlbertWen
添加时间:2020-04-29 14:15:53
修改时间:2026-03-01 18:45:44
分类:02.前端/Vue/Node.js
编辑
mobileSelect支持单选、多级联动、自定义回调函数、二次渲染。最新版本下载地址[2017-09-21更新]: https://github.com/onlyhom/mobileSelect.js
作者:AlbertWen
添加时间:2020-03-12 18:30:11
修改时间:2026-03-01 11:26:09
分类:02.前端/Vue/Node.js
编辑
jquery.chosen.js 查询时,chosen默认从第一个字符搜索,所以写中间的字符搜索时,是搜索不出来的。
作者:AlbertWen
添加时间:2020-03-10 10:29:35
修改时间:2026-02-13 02:28:13
分类:02.前端/Vue/Node.js
编辑
以margin为例,padding同理
- margin为4个时,margin:上 右 下 左;(为顺时针方向)
- margin为3个时,margin:上 左=右 下;
- margin为2个时,margin:上=下 左=右;
- margin为1个时,margin:上=右=下=左;
作者:AlbertWen
添加时间:2017-10-27 10:19:48
修改时间:2026-02-20 04:15:19
分类:02.前端/Vue/Node.js
编辑
JS如何保存图片到本地呢?自己百度一下吧!
这里想要说的是,可以利用 HTML 的 <a> 标签 来是实现保存图片到本地的功能,参考代码如下:
<a href="http://wx.qlogo.cn/mmopen/ajNVdqHZLLDR2d0sYTtWb0ev4IRnQlM3z2NrD9kicibwMJYXWnwZIjxVo8uAeqdM7QB2WqjLWYBx1OSrOp8zpLbI5Y2VIibOKo2eclJVJcqd8k/0" download="思考中的猪.jpg"> <img src="http://wx.qlogo.cn/mmopen/ajNVdqHZLLDR2d0sYTtWb0ev4IRnQlM3z2NrD9kicibwMJYXWnwZIjxVo8uAeqdM7QB2WqjLWYBx1OSrOp8zpLbI5Y2VIibOKo2eclJVJcqd8k/0" /> </a>
作者:AlbertWen
添加时间:2015-10-30 00:11:01
修改时间:2026-02-21 00:03:01
分类:02.前端/Vue/Node.js
编辑
问题1:一个页面如何放置多个Ueditor?
参考代码如下:
<form method="post" action="save.php">
<script type="text/plain" id="ueditorId_1" name="ueditorName_1" style="width: 400px;height:500px;">编辑器的默认值_1</script>
<script type="text/javascript">
UE.getEditor('ueditorId_1');
</script>
作者:AlbertWen
添加时间:2017-10-29 10:26:59
修改时间:2026-02-21 03:10:06
分类:02.前端/Vue/Node.js
编辑
$('#<!--{$inputId}-->').datetimepicker({
todayHighlight: true,
format: "YYYY-MM-DD<!--{if $isTime}--> HH:mm<!--{/if}-->",
pickTime: <!--{if $isTime}-->true<!--{else}-->false<!--{/if}-->,
minuteStepping: <!--{$minuteStepping}-->,
language: 'zh-CN',
inputMask: true,
inline: true,
sideBySide: true,
pickerPosition:'bottom-right'
}).bind('dp.change', function(e) {
var d = new Date(e.date);
console.log(d.getFullYear()); // 年
console.log(d.getMonth() + 1); // 月
console.log(d.getDate()); // 日期
}).next().on(ace.click_event, function(){
$(this).prev().focus();
});
作者:AlbertWen
添加时间:2017-10-29 20:40:37
修改时间:2026-03-03 06:12:05
分类:02.前端/Vue/Node.js
编辑
使用 jQuery 修改 css 中带有 !important 的样式属性
外部样式为:
div.test {
width:auto !important;
overflow:auto !important
}
通过 $("div.test").css("width","100px"); 和 $("div.test").css("width","100px !important"); 是无效的
作者:AlbertWen
添加时间:2017-10-29 09:15:50
修改时间:2026-02-07 16:52:31
分类:02.前端/Vue/Node.js
编辑
一个比较实用的技术,阻止页面关闭,显示 关闭页面确认弹出框,参考代码如下:
window.onbeforeunload = function() {
if (!canLeavePage()) {
return ('确认离开当前页面吗?未保存的数据将会丢失!');
}
};
作者:AlbertWen
添加时间:2015-12-19 16:39:25
修改时间:2026-03-02 08:45:25
分类:02.前端/Vue/Node.js
编辑