<script type="text/javascript"> var hotalAddJs = { makeSubmitDataHandler: function () { var HotelName = $("#HotelName").val(); var Area = $("#Area").val(); var Address = $("#Address").val(); var Mobile = $(&qu…
1.includes和contains 对于字符串,数组来说,判断包含是includes,对classList是contains 2.编辑span内容,enter提交(如何避免keydown之后换行:outline去除) 3.toggleClass:这个函数用来开关一个元素的某个 class var toggleClass = function(element, className) { if (element.classList.contains(className)) { element.c…