console.log("success",e.data);页面的错误提醒
nested exception is org.apache.ibatis.type.TypeException:
Could not set parameters for mapping: ParameterMapping
{property=‘name‘, mode=IN, javaType=class java.lang.Object, jdbcType=null, numericScale=null, resultMapId=‘null‘,
jdbcTypeName=‘null‘, expression=‘null‘}. Cause: org.apache.ibatis.type.TypeException:
Error setting null for parameter #2 with JdbcType OTHER .
Try setting a different JdbcType for this parameter or a different jdbcTypeForNull configuration property.
Cause: java.sql.SQLException: 无效的列类型
Could not set parameters for mapping:
ParameterMapping{property=‘name‘, mode=IN, javaType=class java.lang.Object, jdbcType=null,
numericScale=null, resultMapId=‘null‘, jdbcTypeName=‘null‘, expression=‘null‘}.
Cause: org.apache.ibatis.type.TypeException: Error setting null for parameter #2 with JdbcType OTHER .
Try setting a different JdbcType for this parameter or a different jdbcTypeForNull configuration property.
Cause: java.
sql.SQLException: 无效的列类型
jdbcType的类型匹配
页面传值时对象未匹配正确
输入映射类型出错
An invalid property ‘name‘ was found in mapping #{id,name=#{name}.
Valid properties are javaType,jdbcType,mode,numericScale,resultMap,typeHandler,jdbcTypeName
11:35:50.891 [localhost-startStop-1] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Creating shared instance of singleton bean ‘sqlSessionFactory‘
提交之前保证是测试过并且没有问题的,把alert全删了啊,测试都用console.log()
"^[\\w-]{1,50}$"
ctrl+F5强制刷新
1-没有查无记录的模态框
2-电话无法拨打
3-天假
/^(([1-9]+)|([0-9]+\.[0-9]{1,2}))$/
ng-pattern="/^(([1-9]+)|([0-9]+\.[0-9]{1,2}))$/"
<div class="col-md-4">
<label for="pattern">4. 模式匹配</label>
</div>
<div class="col-md-8">
<input type="text" id="pattern" name="pattern" ng-model="user.pattern" ng-pattern="/^[a-zA-Z]*\d$/" class="form-control" />
<span class="glyphicon glyphicon-ok form-control-feedback"
ng-show="myForm.pattern.$dirty && myForm.pattern.$valid"></span>
</div>
onkeyup="value=value.replace(/[^\d]/g,‘‘)"
<input type=" text" name=" inputText" required ng-trim=" true" ng-model="userNum" ng-pattern=" /^[0-9]*[1-9][0-9]*$/" ng-maxlength=" 6〃 maxlength=" 6〃/>
<span ng-show="myForm.inputText.$error.required">必须得写数字</span>
<span ng-show="myForm.inputText.$invalid&&!myForm.inputText.$error.required">非法的数字</span>
name="inputText" ng-model="money" required ng-trim="true" ng-pattern="/^(([1-9]*)|([0-9]+\.[0-9]{1,2}))$/"
<html>
<head>
<script>
function $(e){return document.getElementById(e);}
function go()
{
var reg=/^[1-9]{1}[0-9]{14}$|^[1-9]{1}[0-9]{16}([0-9]|[xX])$/;
if(reg.test($("check").value))
{alert("ok");}
else{alert("no");}
}
^1[0-9]{10}$
</script>
</head>
<body>
<input id="check" type="text" onchange="go()" />
</body>搜索
</html>
ng-class="{false:‘glyphicon glyphicon-phone-alt text-green ‘,true:‘glyphicon glyphicon-earphone text-green ‘}[tel.isphone]"
Error:[$parse:lexerr]:angularjs语法错误
清理缓存很重,有的时候就是缓存的原因页面一直报错
$(‘#house_search‘).typeahead({
source: function (query, process) {
var results = $.map(houseNos, function (house) {
return String(house.ID);
});
process(results);
},
highlighter: function (item) {
return item ;
},
updater: function (item) {
console.log(‘item‘,item);
return item;
}
});
$(‘#customer_search‘).typeahead({
source: function (query, process) {
var results = $.map(customerNos, function (customerNos) {
console.log();
return String(customerNos.CRID);
});
process(results);
},
highlighter: function (item) {
return item ;
},
updater: function (item) {
console.log(‘item‘,item);
return item;
}
});
<select class="form-control" ng-model="exchange.exchangeNo"
ng-options="contractno.CONTRACT_NUM as contractno.CONTRACT_NUM for contractno in contractnos"
required>
<option selected value="">--请选择--</option>
<input id="house_search" type="text" ng-model="info.housesid"
class="form-control" ng-model="info.housesid"
placeholder="房源编号" data-provide="typeahead"
ng-change="delHouseNos(info.housesid)" required/>
DataCenter.get("inquire/customernos",1);
DataCenter.addEventListener("customernos",function(e){
customerNos = e.data;
$scope.$apply();
});
assistantStoreNos
assistantRegionalNos
var assistantStoreNos =[];//门店经理姓名
var assistantRegionalNos=[];//区域经理姓名
#assistantStore_search
#assistantRegional_search
//查询客源编号
@RequestMapping(value = "/customernos/{id}", method = RequestMethod.GET)
public Object queryCustomerNos(@PathVariable("id") Integer id){
Object o = service.getCustomerNos();
return DataEvent.wrap("customernos", o);
}
<!--客源编号查询-->
<select id="getCustomerNos" resultMap="M">
SELECT
B.CRID
FROM
CUSTOMER.CUSTOMERS A ,CUSTOMER.CRESOURCE B
WHERE
A.CID = B.CID
AND A.BIZTYPE = 2
</select>
SELECT
B.CRID
FROM
CUSTOMER.CUSTOMERS A ,CUSTOMER.CRESOURCE B
WHERE
A.CID = B.CID
AND A.BIZTYPE = 2
select emp_name from cbssys.t_Employees
做下拉框提示时的bootstrap-typehead插件
$(‘#customer_search‘).typeahead({
source: function (query, process) {
var results = $.map(customerNos, function (customerNos) {
console.log();
return String(customerNos.CRID);
});
process(results);
},
highlighter: function (item) {
return item ;
},
updater: function (item) {
console.log(‘item‘,item);
return item;
}
});
[ERROR] /E:/intellJ/CBS-Transactions/src/main/java/com/wiwj/cbs/transactions/service/impl/link12/Link12ServiceImpl.java:[217,24] 找不到符号
配置maven时重要的一步
-Dmaven.multiModuleProjectDirectory=$M2_HOME
svn资源下载路径
http://10.10.101.71:81/repos/CBS
[WARNING] ‘dependencies.dependency.(groupId:artifactId:type:classifier)‘ must be unique
data-dismiss="modal 是一个定制的 HTML5 data 属性。用于关闭模态窗口。
其中ng-show和ng-hide是一样的,只不过ng-show是满足条件就展示,ng-hide是满足条件就隐藏,下面就不再提到ng-hide。
Font Awesome完美的图标字体只为Bootstrap设计
bootstrap-star-rating,jquery星星级评分插件
<div class="panel-footer">
<nav class="pull-right">
<pagination num-pages="pages" curr-page="page" on-select-page="selectPage(page)">
</pagination>
</nav>
</div>
//清空模态框,写上这段话就不用去手动的页面模态框的缓存了
$(".modal").on("hidden.bs.modal",function(){
$(this).removeData("bs.modal");
});
alert-dismissable可取消的警告框
http://localhost:8080/transactions/fund/view/fundList.html
无法访问服务器,可以对下面的文件进行修改最后两项加上#(2016年4月20日下午16:50)
C:\Windows\System32\drivers\etc\hosts
租赁合同编号:sj009sj
DataCenter.find("contractRent/myrentList", $scope.d)
find寻找这个URL,并为之赋值
List<Map<String, String>> list =contractRentDao.queryList(data, new RowBounds(Integer.parseInt(data.get("page")), Integer.parseInt(data.get("size"))));
这个page和size就是说要我们自行设置
DataCenter流程再认识:
1、首先通过angularjs双向绑定或是jQuery从页面获取数据或状态,通过这些数据或状态来执行调用不同的DataCenter里面的方法(find\get\modify);
2、find、get、modify这些方法触发的都是url地址,并同时将参数或状态值传递过去进而执行。
3、执行上述方法完毕之后,获取监听的结果或状态,并通过angularjs双向绑定来完成向页面的数据和状态的传输
$scope.cancel = function () {
if(!confirm(‘确认作废?‘)) return;
DataCenter.modify("contractRent/cancel", {CID:$scope.CID, COMPANY:1, STT:98, MM:$(‘#MM‘).val(),CONTRACTNO:$scope.cno}, $scope.CID);
}
删除确认框,删除之前提示是否删除?如果确认便调用modify来修改,如果取消的话就会返回,不会执行作废url
if($("#iscancel").is(":checked")){
$scope.d[‘STT‘] = 98;
}
这句话就是说单选框是否被选中
,如果选STT就会有值
data-main
<script src="../../js/config.js"></script>
<script src="http://static.bacic5i5j.com/cdn/lib/jquery/jquery-2.1.4.min.js"></script>
<script src="http://static.bacic5i5j.com/cdn/lib/require/2.1.9/require.min.js" data-main="../js/detail"></script>
js里面的substring()而不是subString();
jqeury的在学习
<script
src="http://libs.baidu.com/jquery/1.8.3/jquery.min.js">
</script>
<script>
function myFunc(){
$("#h00").html("hello jquery!!!")
}
$(document).ready(myFunc)
</script>
jquery增加css样式
$("#h01").attr("style","color:red").html("Hello jquery")
<input type="text" onblur="myFunc()" value="hehe"/>
<script>
function myFunc(){
setInterval(function(){
var name=prompt("Please enter your name:","Your name")
alert("欢迎您:"+name+"先生/女士");
},3000);
}
</script>