。。。
notification.schedule({
id : 'mid_2'+msg_cnt, // you don't have to use an int by the way.. '1a' or just 'a' would be fine
title : "最新消息1",
text : "明天放假啦!!",
//icon : window.location.origin+require.toUrl("$UI/myApp/img/cp_app_forbidden_goods_2x.png")
icon : "file:///android_asset/www" + require.toUrl("$UI/myApp/img/Compass.png")
//icon: "res://sym_def_app_icon" /*<--这条好使,图标确实变了,但是否只能是系统资源预置的几个图标吗?我自己的图片怎么加进去?*/
//icon:"file:///storage/emulated/0/Android/data/com.postjd.myapp/Compass.png"
//icon:"file:///Android/data/com.postjd.myapp/ha.png"
//smallIcon : "res://ic_notification_overlay"
});