Home > Article > Web Front-end > Some usage tips about html and js
The content of this article is to share with you some usage tips about html and js. It has certain reference value. Friends in need can refer to it
function xxx() { var opts = { url : '/xxx.do', type : 'post', dataType : 'json', success : function(data) { } } $("#jvForm").ajaxSubmit(opts); }
If you dynamically splice p in js, the style may not be loaded. Question
for (i = 0; i < gaozhong.length; i++) { var v = '<li id="'+gaozhong[i].id+'" class="myli">'+gaozhong[i].title+'</li>'; $("#high").append(v); } //在使用'ul'标签时才使用,作用:刷新列表,重新加载所在标签的样式 $("ul").listview("refresh"); $("ul").trigger("create");
function getRequest() { var url = location.search; // 获取url中"?"符后的字串 return url; }
Related recommendations:
A casual summary of the use of Html and JS in the project
The above is the detailed content of Some usage tips about html and js. For more information, please follow other related articles on the PHP Chinese website!