2019年2月21日

摘要: public static void main(String[] args) { // 数组遍历 System.out.println("1 数组遍历"); String[] str1 = { "数", "组", "遍", "历" }; arrayTravelse(str1); System.out 阅读全文
posted @ 2019-02-21 09:18 城市小农民 阅读(396) 评论(0) 推荐(0) 编辑
摘要: public class ArraySort { /** * 冒泡排序 */ public static void bubbleSort(int[] arr) { /** * 外循环控制排序趟数 * 总共需要arr.length-1趟 */ for (int i = 0; i < arr.lengt 阅读全文
posted @ 2019-02-21 09:08 城市小农民 阅读(104) 评论(0) 推荐(0) 编辑

2019年2月18日

摘要: 例子1:分页后序号仍旧从1开始重新计算。 $("#grid").kendoGrid({ sortable: true, dataSource: [{ name: "Jane Doe", age: 30 }, { name: "Jane Doe", age: 30 }, { name: "Jane D 阅读全文
posted @ 2019-02-18 16:57 城市小农民 阅读(255) 评论(0) 推荐(0) 编辑

2019年2月14日

摘要: { field: "tran_unit_pri", title: "Unit Price", width: 100, attributes: { style: "text-align: right;" }, format: "{0:n}", editor: function (container, 阅读全文
posted @ 2019-02-14 10:38 城市小农民 阅读(113) 评论(0) 推荐(0) 编辑
摘要: $("#grid").kendoGrid({ ... //省略 edit:function(e){ if(e.model.isNew()){ // 新建按钮,和新增的行都可触发 //grid 的 dataSource var data=dataSource.data().toJSON(); var 阅读全文
posted @ 2019-02-14 10:35 城市小农民 阅读(118) 评论(0) 推荐(0) 编辑
摘要: kendo.template("<a href='\\#'>link</a>"); <script type="text/x-kendo-template" id="myTemplate"> <a href="\#">link</a> </script> <script> var myTemplat 阅读全文
posted @ 2019-02-14 10:21 城市小农民 阅读(582) 评论(0) 推荐(0) 编辑
摘要: <script type="text/x-kendo-template" id="myTemplate"> <ul> # for(var i=0;i<data.length;i++) { # <li>#= data[i] #</li> # } # </ul> </script> <script ty 阅读全文
posted @ 2019-02-14 10:20 城市小农民 阅读(107) 评论(0) 推荐(0) 编辑
摘要: $("#auInput").kendoAutoComplete({ dataSource: [ {id:1, name:"Neo"}, {id:2, name:"Shelly"} ], dataTextField: "name", template: kendo.template("<span><i 阅读全文
posted @ 2019-02-14 10:16 城市小农民 阅读(60) 评论(0) 推荐(0) 编辑
摘要: //模版html代码<script id="auth-template" type="text/x-kendo-template"> <input type='checkbox' data-code="#:Code#" id='addCk_#:Code#' name='addCk_#:Code#' 阅读全文
posted @ 2019-02-14 10:08 城市小农民 阅读(228) 评论(0) 推荐(0) 编辑
摘要: //第一种:放在页面上(记得标明属性type="text")<input type="text" pattern="^[A-Za-z0-9\.\-_@]+$" validationMessage='最多30个字符(支持英文数字.-_@)'> kendo.ui.validator.rules.data 阅读全文
posted @ 2019-02-14 10:04 城市小农民 阅读(162) 评论(0) 推荐(0) 编辑

导航